@@ -381,8 +381,11 @@ public void Listen(int backlog) { }
381
381
public int Receive ( System . Span < byte > buffer ) { throw null ; }
382
382
public int Receive ( System . Span < byte > buffer , System . Net . Sockets . SocketFlags socketFlags ) { throw null ; }
383
383
public int Receive ( System . Span < byte > buffer , System . Net . Sockets . SocketFlags socketFlags , out System . Net . Sockets . SocketError errorCode ) { throw null ; }
384
+ public System . Threading . Tasks . Task < int > ReceiveAsync ( System . ArraySegment < byte > buffer ) { throw null ; }
384
385
public System . Threading . Tasks . Task < int > ReceiveAsync ( System . ArraySegment < byte > buffer , System . Net . Sockets . SocketFlags socketFlags ) { throw null ; }
386
+ public System . Threading . Tasks . Task < int > ReceiveAsync ( System . Collections . Generic . IList < System . ArraySegment < byte > > buffers ) { throw null ; }
385
387
public System . Threading . Tasks . Task < int > ReceiveAsync ( System . Collections . Generic . IList < System . ArraySegment < byte > > buffers , System . Net . Sockets . SocketFlags socketFlags ) { throw null ; }
388
+ public System . Threading . Tasks . ValueTask < int > ReceiveAsync ( System . Memory < byte > buffer , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
386
389
public System . Threading . Tasks . ValueTask < int > ReceiveAsync ( System . Memory < byte > buffer , System . Net . Sockets . SocketFlags socketFlags , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
387
390
public bool ReceiveAsync ( System . Net . Sockets . SocketAsyncEventArgs e ) { throw null ; }
388
391
public int ReceiveFrom ( byte [ ] buffer , int offset , int size , System . Net . Sockets . SocketFlags socketFlags , ref System . Net . EndPoint remoteEP ) { throw null ; }
@@ -391,12 +394,16 @@ public void Listen(int backlog) { }
391
394
public int ReceiveFrom ( byte [ ] buffer , System . Net . Sockets . SocketFlags socketFlags , ref System . Net . EndPoint remoteEP ) { throw null ; }
392
395
public int ReceiveFrom ( System . Span < byte > buffer , ref System . Net . EndPoint remoteEP ) { throw null ; }
393
396
public int ReceiveFrom ( System . Span < byte > buffer , System . Net . Sockets . SocketFlags socketFlags , ref System . Net . EndPoint remoteEP ) { throw null ; }
397
+ public System . Threading . Tasks . Task < System . Net . Sockets . SocketReceiveFromResult > ReceiveFromAsync ( System . ArraySegment < byte > buffer , System . Net . EndPoint remoteEndPoint ) { throw null ; }
394
398
public System . Threading . Tasks . Task < System . Net . Sockets . SocketReceiveFromResult > ReceiveFromAsync ( System . ArraySegment < byte > buffer , System . Net . Sockets . SocketFlags socketFlags , System . Net . EndPoint remoteEndPoint ) { throw null ; }
399
+ public System . Threading . Tasks . ValueTask < System . Net . Sockets . SocketReceiveFromResult > ReceiveFromAsync ( System . Memory < byte > buffer , System . Net . EndPoint remoteEndPoint , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
395
400
public System . Threading . Tasks . ValueTask < System . Net . Sockets . SocketReceiveFromResult > ReceiveFromAsync ( System . Memory < byte > buffer , System . Net . Sockets . SocketFlags socketFlags , System . Net . EndPoint remoteEndPoint , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
396
401
public bool ReceiveFromAsync ( System . Net . Sockets . SocketAsyncEventArgs e ) { throw null ; }
397
402
public int ReceiveMessageFrom ( byte [ ] buffer , int offset , int size , ref System . Net . Sockets . SocketFlags socketFlags , ref System . Net . EndPoint remoteEP , out System . Net . Sockets . IPPacketInformation ipPacketInformation ) { throw null ; }
398
403
public int ReceiveMessageFrom ( System . Span < byte > buffer , ref System . Net . Sockets . SocketFlags socketFlags , ref System . Net . EndPoint remoteEP , out System . Net . Sockets . IPPacketInformation ipPacketInformation ) { throw null ; }
404
+ public System . Threading . Tasks . Task < System . Net . Sockets . SocketReceiveMessageFromResult > ReceiveMessageFromAsync ( System . ArraySegment < byte > buffer , System . Net . EndPoint remoteEndPoint ) { throw null ; }
399
405
public System . Threading . Tasks . Task < System . Net . Sockets . SocketReceiveMessageFromResult > ReceiveMessageFromAsync ( System . ArraySegment < byte > buffer , System . Net . Sockets . SocketFlags socketFlags , System . Net . EndPoint remoteEndPoint ) { throw null ; }
406
+ public System . Threading . Tasks . ValueTask < System . Net . Sockets . SocketReceiveMessageFromResult > ReceiveMessageFromAsync ( System . Memory < byte > buffer , System . Net . EndPoint remoteEndPoint , System . Threading . CancellationToken cancellationToken = default ) { throw null ; }
400
407
public System . Threading . Tasks . ValueTask < System . Net . Sockets . SocketReceiveMessageFromResult > ReceiveMessageFromAsync ( System . Memory < byte > buffer , System . Net . Sockets . SocketFlags socketFlags , System . Net . EndPoint remoteEndPoint , System . Threading . CancellationToken cancellationToken = default ) { throw null ; }
401
408
public bool ReceiveMessageFromAsync ( System . Net . Sockets . SocketAsyncEventArgs e ) { throw null ; }
402
409
public static void Select ( System . Collections . IList ? checkRead , System . Collections . IList ? checkWrite , System . Collections . IList ? checkError , int microSeconds ) { }
@@ -411,8 +418,11 @@ public static void Select(System.Collections.IList? checkRead, System.Collection
411
418
public int Send ( System . ReadOnlySpan < byte > buffer ) { throw null ; }
412
419
public int Send ( System . ReadOnlySpan < byte > buffer , System . Net . Sockets . SocketFlags socketFlags ) { throw null ; }
413
420
public int Send ( System . ReadOnlySpan < byte > buffer , System . Net . Sockets . SocketFlags socketFlags , out System . Net . Sockets . SocketError errorCode ) { throw null ; }
421
+ public System . Threading . Tasks . Task < int > SendAsync ( System . ArraySegment < byte > buffer ) { throw null ; }
414
422
public System . Threading . Tasks . Task < int > SendAsync ( System . ArraySegment < byte > buffer , System . Net . Sockets . SocketFlags socketFlags ) { throw null ; }
423
+ public System . Threading . Tasks . Task < int > SendAsync ( System . Collections . Generic . IList < System . ArraySegment < byte > > buffers ) { throw null ; }
415
424
public System . Threading . Tasks . Task < int > SendAsync ( System . Collections . Generic . IList < System . ArraySegment < byte > > buffers , System . Net . Sockets . SocketFlags socketFlags ) { throw null ; }
425
+ public System . Threading . Tasks . ValueTask < int > SendAsync ( System . ReadOnlyMemory < byte > buffer , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
416
426
public System . Threading . Tasks . ValueTask < int > SendAsync ( System . ReadOnlyMemory < byte > buffer , System . Net . Sockets . SocketFlags socketFlags , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
417
427
public bool SendAsync ( System . Net . Sockets . SocketAsyncEventArgs e ) { throw null ; }
418
428
public void SendFile ( string ? fileName ) { }
@@ -427,7 +437,9 @@ public void SendFile(string? fileName, System.ReadOnlySpan<byte> preBuffer, Syst
427
437
public int SendTo ( byte [ ] buffer , System . Net . Sockets . SocketFlags socketFlags , System . Net . EndPoint remoteEP ) { throw null ; }
428
438
public int SendTo ( System . ReadOnlySpan < byte > buffer , System . Net . EndPoint remoteEP ) { throw null ; }
429
439
public int SendTo ( System . ReadOnlySpan < byte > buffer , System . Net . Sockets . SocketFlags socketFlags , System . Net . EndPoint remoteEP ) { throw null ; }
440
+ public System . Threading . Tasks . Task < int > SendToAsync ( System . ArraySegment < byte > buffer , System . Net . EndPoint remoteEP ) { throw null ; }
430
441
public System . Threading . Tasks . Task < int > SendToAsync ( System . ArraySegment < byte > buffer , System . Net . Sockets . SocketFlags socketFlags , System . Net . EndPoint remoteEP ) { throw null ; }
442
+ public System . Threading . Tasks . ValueTask < int > SendToAsync ( System . ReadOnlyMemory < byte > buffer , System . Net . EndPoint remoteEP , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
431
443
public System . Threading . Tasks . ValueTask < int > SendToAsync ( System . ReadOnlyMemory < byte > buffer , System . Net . Sockets . SocketFlags socketFlags , System . Net . EndPoint remoteEP , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
432
444
public bool SendToAsync ( System . Net . Sockets . SocketAsyncEventArgs e ) { throw null ; }
433
445
[ System . Runtime . Versioning . SupportedOSPlatformAttribute ( "windows" ) ]
@@ -591,6 +603,7 @@ public enum SocketShutdown
591
603
Send = 1 ,
592
604
Both = 2 ,
593
605
}
606
+ [ System . ComponentModel . EditorBrowsableAttribute ( System . ComponentModel . EditorBrowsableState . Never ) ]
594
607
public static partial class SocketTaskExtensions
595
608
{
596
609
[ System . ComponentModel . EditorBrowsableAttribute ( System . ComponentModel . EditorBrowsableState . Never ) ]
0 commit comments