System.Net.Sockets.DisconnectOverlappedAsyncResult.PostCompletion C# (CSharp) Method

PostCompletion() private method

private PostCompletion ( int numBytes ) : object
numBytes int
return object
        internal override object PostCompletion(int numBytes)
        {
            if (ErrorCode == (int)SocketError.Success)
            {
                Socket socket = (Socket)AsyncObject;
                socket.SetToDisconnected();
                socket._remoteEndPoint = null;
            }
            return base.PostCompletion(numBytes);
        }
    }