3 writes to _currentSocket
System.Net.Sockets (3)
System\Net\Sockets\SocketAsyncEventArgs.cs (3)
557
_currentSocket
= socket;
642
_currentSocket
= null;
842
_connectSocket =
_currentSocket
= internalArgs.ConnectSocket!;
28 references to _currentSocket
System.Net.Sockets (28)
System\Net\Sockets\SocketAsyncEventArgs.cs (24)
219
Completed?.Invoke(e.
_currentSocket
, e);
577
_acceptAddressBufferCount = 2 * (Socket.GetAddressSize(
_currentSocket
!._rightEndPoint!) + 16);
622
_currentSocket
?.Dispose();
635
Socket? currentSocket =
_currentSocket
;
721
if (
_currentSocket
!= null)
725
if (!
_currentSocket
.CanTryAddressFamily(address.AddressFamily))
730
attemptSocket =
_currentSocket
;
821
if (
_currentSocket
!= null)
825
if ((!_userSocket && !
_currentSocket
.Connected) ||
829
_currentSocket
.Dispose();
837
_currentSocket
?.UpdateStatusAfterSocketError(_socketError);
900
SocketAddress remoteSocketAddress =
_currentSocket
!._rightEndPoint!.Serialize();
906
_acceptSocket =
_currentSocket
.UpdateAcceptSocket(_acceptSocket!,
_currentSocket
._rightEndPoint!.Create(remoteSocketAddress));
921
_currentSocket
.UpdateStatusAfterSocketError(socketError);
933
NetEventSource.Connected(
_currentSocket
!,
_currentSocket
!.LocalEndPoint,
_currentSocket
.RemoteEndPoint);
939
_currentSocket
!.SetToConnected();
940
_connectSocket =
_currentSocket
;
945
_currentSocket
!.UpdateStatusAfterSocketError(socketError);
950
_currentSocket
!.SetToDisconnected();
951
_currentSocket
._remoteEndPoint = null;
1010
if (SocketsTelemetry.Log.IsEnabled()) LogBytesTransferEvents(
_currentSocket
?.SocketType, _completedOperation, bytesTransferred);
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (4)
128
bool noReceivedFlags =
_currentSocket
!.ProtocolType == ProtocolType.Tcp;
351
Socket acceptedSocket =
_currentSocket
!.CreateAcceptSocket(
353
remoteSocketAddress.Size > 0 ?
_currentSocket
._rightEndPoint!.Create(remoteSocketAddress) : null);
393
if (
_currentSocket
!.Disposed)