Пример #1
0
        internal void CancelReceiveVerifyCommandTimeout(SocketTimeoutNode socket)
        {
            SocketTimeoutLink receiveVerifyCommandTimeout = this.ReceiveVerifyCommandTimeout;

            if (receiveVerifyCommandTimeout != null)
            {
                receiveVerifyCommandTimeout.Cancel(socket);
            }
        }
Пример #2
0
        internal bool PushReceiveVerifyCommandTimeout(SocketTimeoutNode serverSocket, Socket socket)
        {
            SocketTimeoutLink receiveVerifyCommandTimeout = this.ReceiveVerifyCommandTimeout;

            if (receiveVerifyCommandTimeout != null)
            {
                receiveVerifyCommandTimeout.Push(serverSocket, socket);
                return(true);
            }
            return(false);
        }