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

◆ StartOperationCommon()

void System.Net.Sockets.SocketAsyncEventArgs.StartOperationCommon ( Socket socket,
SocketAsyncOperation operation )
inlinepackageinherited

Definition at line 609 of file SocketAsyncEventArgs.cs.

610 {
611 int num = Interlocked.CompareExchange(ref _operating, 1, 0);
612 if (num != 0)
613 {
615 }
618 if (_flowExecutionContext || (SocketsTelemetry.Log.IsEnabled() && (operation == SocketAsyncOperation.Connect || operation == SocketAsyncOperation.Accept)))
619 {
621 }
623 }
static ? ExecutionContext Capture()
static int CompareExchange(ref int location1, int value, int comparand)

References System.Net.Sockets.SocketAsyncEventArgs._completedOperation, System.Net.Sockets.SocketAsyncEventArgs._context, System.Net.Sockets.SocketAsyncEventArgs._currentSocket, System.Net.Sockets.SocketAsyncEventArgs._flowExecutionContext, System.Net.Sockets.SocketAsyncEventArgs._operating, System.Threading.ExecutionContext.Capture(), System.Threading.Interlocked.CompareExchange(), System.Net.Sockets.SocketsTelemetry.Log, System.Net.Sockets.SocketAsyncEventArgs.StartOperationCommonCore(), and System.Net.Sockets.SocketAsyncEventArgs.ThrowForNonFreeStatus().

Referenced by System.Net.Sockets.Socket.AcceptAsync(), System.Net.Sockets.Socket.ConnectAsync(), System.Net.Sockets.Socket.ConnectAsync(), System.Net.Sockets.Socket.DisconnectAsync(), System.Net.Sockets.Socket.ReceiveAsync(), System.Net.Sockets.Socket.ReceiveFromAsync(), System.Net.Sockets.Socket.ReceiveMessageFromAsync(), System.Net.Sockets.Socket.SendAsync(), System.Net.Sockets.Socket.SendPacketsAsync(), and System.Net.Sockets.Socket.SendToAsync().