2 writes to m_CurrentSocket
System (2)
net\System\Net\Sockets\Socket.cs (2)
9051m_CurrentSocket = socket; 9780m_CurrentSocket = connectSocket;
38 references to m_CurrentSocket
System (38)
net\System\Net\Sockets\Socket.cs (38)
8791handler(e.m_CurrentSocket, e); 9030if (m_CompletedChanged || socket != m_CurrentSocket) { 9065m_AcceptAddressBufferCount = 2 * (m_CurrentSocket.m_RightEndPoint.Serialize().Size + 16); 9121GlobalLog.Assert(m_CurrentSocket != null, "SocketAsyncEventArgs::CancelConnectAsync - CurrentSocket and MultipleConnect both null!"); 9122m_CurrentSocket.Close(); 9191bool ipv4 = (m_CurrentSocket.AddressFamily == AddressFamily.InterNetwork 9193bool ipv6 = m_CurrentSocket.AddressFamily == AddressFamily.InterNetworkV6; 9677Logging.Dump(Logging.Sockets, m_CurrentSocket, "FinishOperation(" + m_CompletedOperation + "Async)", m_AcceptBuffer, 0, size); 9680Logging.Dump(Logging.Sockets, m_CurrentSocket, "FinishOperation(" + m_CompletedOperation + "Async)", m_Buffer, m_Offset, size); 9684Logging.Dump(Logging.Sockets, m_CurrentSocket, "FinishOperation(" + m_CompletedOperation + "Async)", wsaBuffer.Pointer, Math.Min(wsaBuffer.Length, size)); 9699Logging.Dump(Logging.Sockets, m_CurrentSocket, "FinishOperation(" + m_CompletedOperation + "Async)Buffer", spe.m_Buffer, spe.m_Offset, Math.Min(spe.m_Count, size)); 9702Logging.PrintInfo(Logging.Sockets, m_CurrentSocket, "FinishOperation(" + m_CompletedOperation + "Async)", SR.GetString(SR.net_log_socket_not_logged_file, spe.m_FilePath)); 9712if(m_CurrentSocket.Transport == TransportType.Udp) { 9717if(m_CurrentSocket.Transport == TransportType.Udp) { 9729if (m_CurrentSocket != null) { 9730m_CurrentSocket.UpdateStatusAfterSocketError(socketError); 9739if (m_CurrentSocket != null) { 9740m_CurrentSocket.UpdateStatusAfterSocketError(m_SocketError); 9751if (m_CurrentSocket != null) { 9752m_CurrentSocket.UpdateStatusAfterSocketError(socketError); 9766if (m_CurrentSocket != null) { 9767m_CurrentSocket.UpdateStatusAfterSocketError(m_SocketError); 9808SocketAddress remoteSocketAddress = m_CurrentSocket.m_RightEndPoint.Serialize(); 9815m_CurrentSocket.GetAcceptExSockaddrs( 9828IntPtr handle = m_CurrentSocket.SafeHandle.DangerousGetHandle(); 9846m_AcceptSocket = m_CurrentSocket.UpdateAcceptSocket(m_AcceptSocket, m_CurrentSocket.m_RightEndPoint.Create(remoteSocketAddress), false); 9867m_CurrentSocket.SafeHandle, 9882if (s_LoggingEnabled) Logging.PrintInfo(Logging.Sockets, m_CurrentSocket, 9883SR.GetString(SR.net_log_socket_connected, m_CurrentSocket.LocalEndPoint, m_CurrentSocket.RemoteEndPoint)); 9885m_CurrentSocket.SetToConnected(); 9886m_ConnectSocket = m_CurrentSocket; 9892m_CurrentSocket.SetToDisconnected(); 9893m_CurrentSocket.m_RemoteEndPoint = null; 10021m_CurrentSocket.UpdateStatusAfterSocketError(socketError); 10045if(m_CurrentSocket.CleanedUp) { 10055m_CurrentSocket.SafeHandle,