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

◆ DoOperationDisconnect()

unsafe SocketError System.Net.Sockets.SocketAsyncEventArgs.DoOperationDisconnect ( Socket socket,
SafeSocketHandle handle,
CancellationToken cancellationToken )
inlinepackageinherited

Definition at line 1158 of file SocketAsyncEventArgs.cs.

1159 {
1161 try
1162 {
1164 bool success = socket.DisconnectEx(handle, overlapped, DisconnectReuseSocket ? 2 : 0, 0);
1166 }
1167 catch
1168 {
1171 throw;
1172 }
1173 }
static readonly EventArgs Empty
Definition EventArgs.cs:9
unsafe NativeOverlapped * AllocateNativeOverlapped()
volatile AsyncProcessingState _asyncProcessingState
unsafe void FreeNativeOverlapped(NativeOverlapped *overlapped)
unsafe SocketError ProcessIOCPResultWithDeferredAsyncHandling(bool success, int bytesTransferred, NativeOverlapped *overlapped, Memory< byte > bufferToPin, CancellationToken cancellationToken=default(CancellationToken))

References System.Net.Sockets.SocketAsyncEventArgs._asyncProcessingState, System.Net.Sockets.SocketAsyncEventArgs.AllocateNativeOverlapped(), System.cancellationToken, System.Net.Sockets.SocketAsyncEventArgs.DisconnectReuseSocket, System.Net.Sockets.SocketAsyncEventArgs.FreeNativeOverlapped(), System.handle, and System.Net.Sockets.SocketAsyncEventArgs.ProcessIOCPResultWithDeferredAsyncHandling().

Referenced by System.Net.Sockets.Socket.DisconnectAsync().