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