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