44 references to SocketAsyncOperation
netstandard (1)
netstandard.cs (1)
1270
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
SocketAsyncOperation
))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
760
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
SocketAsyncOperation
))]
System.Net (1)
System.Net.cs (1)
41
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Sockets.
SocketAsyncOperation
))]
System.Net.Sockets (41)
System\Net\Sockets\NetEventSource.Sockets.cs (2)
43
public static void NotLoggedFile(string filePath, Socket socket,
SocketAsyncOperation
completedOperation) =>
47
private void NotLoggedFile(string filePath, int socketHash,
SocketAsyncOperation
completedOperation) =>
System\Net\Sockets\Socket.cs (11)
2860
e.StartOperationCommon(this,
SocketAsyncOperation
.Accept);
2916
e.StartOperationCommon(this,
SocketAsyncOperation
.Connect);
2949
e.StartOperationCommon(this,
SocketAsyncOperation
.Connect);
3005
e.StartOperationCommon(attemptSocket,
SocketAsyncOperation
.Connect);
3046
e.StartOperationCommon(this,
SocketAsyncOperation
.Disconnect);
3071
e.StartOperationCommon(this,
SocketAsyncOperation
.Receive);
3127
e.StartOperationCommon(this,
SocketAsyncOperation
.ReceiveFrom);
3175
e.StartOperationCommon(this,
SocketAsyncOperation
.ReceiveMessageFrom);
3200
e.StartOperationCommon(this,
SocketAsyncOperation
.Send);
3233
e.StartOperationCommon(this,
SocketAsyncOperation
.SendPackets);
3278
e.StartOperationCommon(this,
SocketAsyncOperation
.SendTo);
System\Net\Sockets\SocketAsyncEventArgs.cs (28)
37
private
SocketAsyncOperation
_completedOperation;
209
if (LastOperation <=
SocketAsyncOperation
.Connect)
226
case
SocketAsyncOperation
.Accept:
230
case
SocketAsyncOperation
.Connect:
248
public
SocketAsyncOperation
LastOperation
546
internal void StartOperationCommon(Socket? socket,
SocketAsyncOperation
operation)
562
(SocketsTelemetry.Log.IsEnabled() && (operation ==
SocketAsyncOperation
.Connect || operation ==
SocketAsyncOperation
.Accept)))
611
if (_operating == OperationState.InProgress && _completedOperation ==
SocketAsyncOperation
.Connect)
639
if (_completedOperation ==
SocketAsyncOperation
.Connect && !_userSocket)
648
case
SocketAsyncOperation
.SendPackets:
846
if (SocketsTelemetry.Log.IsEnabled()) LogBytesTransferEvents(_connectSocket?.SocketType,
SocketAsyncOperation
.Connect, internalArgs.BytesTransferred);
898
case
SocketAsyncOperation
.Accept:
925
case
SocketAsyncOperation
.Connect:
949
case
SocketAsyncOperation
.Disconnect:
954
case
SocketAsyncOperation
.ReceiveFrom:
981
case
SocketAsyncOperation
.ReceiveMessageFrom:
1005
case
SocketAsyncOperation
.SendPackets:
1046
if (LastOperation <=
SocketAsyncOperation
.Connect)
1052
private static void LogBytesTransferEvents(SocketType? socketType,
SocketAsyncOperation
operation, int bytesTransferred)
1056
case
SocketAsyncOperation
.Receive:
1057
case
SocketAsyncOperation
.ReceiveFrom:
1058
case
SocketAsyncOperation
.ReceiveMessageFrom:
1059
case
SocketAsyncOperation
.Accept:
1063
case
SocketAsyncOperation
.Send:
1064
case
SocketAsyncOperation
.SendTo:
1065
case
SocketAsyncOperation
.SendPackets:
1066
case
SocketAsyncOperation
.Connect: