Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReceiveAsync() [7/7]

bool System.Net.Sockets.Socket.ReceiveAsync ( SocketAsyncEventArgs e,
CancellationToken cancellationToken )
inlineprivate

Definition at line 3006 of file Socket.cs.

3007 {
3009 if (e == null)
3010 {
3011 throw new ArgumentNullException("e");
3012 }
3013 e.StartOperationCommon(this, SocketAsyncOperation.Receive);
3014 SocketError socketError;
3015 try
3016 {
3017 socketError = e.DoOperationReceive(_handle, cancellationToken);
3018 }
3019 catch
3020 {
3021 e.Complete();
3022 throw;
3023 }
3024 return socketError == SocketError.IOPending;
3025 }
SafeSocketHandle _handle
Definition Socket.cs:533

References System.Net.Sockets.Socket._handle, System.cancellationToken, System.Net.Sockets.SocketAsyncEventArgs.Complete(), System.Net.Sockets.SocketAsyncEventArgs.DoOperationReceive(), System.Net.Sockets.SocketAsyncEventArgs.StartOperationCommon(), and System.Net.Sockets.Socket.ThrowIfDisposed().