4 writes to _currentSocket
System.Net.Sockets (4)
System\Net\Sockets\SocketAsyncEventArgs.cs (4)
561_currentSocket = socket; 646_currentSocket = null; 894_connectSocket = _currentSocket = internalArgs.ConnectSocket!; 961_saea._connectSocket = _saea._currentSocket = socket;
30 references to _currentSocket
System.Net.Sockets (30)
System\Net\Sockets\SocketAsyncEventArgs.cs (26)
219Completed?.Invoke(e._currentSocket, e); 581_acceptAddressBufferCount = 2 * (Socket.GetAddressSize(_currentSocket!._rightEndPoint!) + 16); 626_currentSocket?.Dispose(); 639Socket? currentSocket = _currentSocket; 701_currentSocket == null && 752if (_currentSocket != null) 756if (!_currentSocket.CanTryAddressFamily(address.AddressFamily)) 761attemptSocket = _currentSocket; 873if (_currentSocket != null) 877if ((!_userSocket && !_currentSocket.Connected) || 881_currentSocket.Dispose(); 889_currentSocket?.UpdateStatusAfterSocketError(_socketError); 976_saea._currentSocket?.UpdateStatusAfterSocketError(_saea._socketError); 1006SocketAddress remoteSocketAddress = _currentSocket!._rightEndPoint!.Serialize(); 1012_acceptSocket = _currentSocket.UpdateAcceptSocket(_acceptSocket!, _currentSocket._rightEndPoint!.Create(remoteSocketAddress)); 1027_currentSocket.UpdateStatusAfterSocketError(socketError); 1039NetEventSource.Connected(_currentSocket!, _currentSocket!.LocalEndPoint, _currentSocket.RemoteEndPoint); 1045_currentSocket!.SetToConnected(); 1046_connectSocket = _currentSocket; 1051_currentSocket!.UpdateStatusAfterSocketError(socketError); 1056_currentSocket!.SetToDisconnected(); 1057_currentSocket._remoteEndPoint = null; 1116if (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)