public void Disconnect()
 {
     this.reliableChannel.CloseChannel();
     this.unreliableChannel.CloseChannel(this.remoteEndPoint);
     ReliableChannel.StopIO();
     this.unreliableChannel.StopIO();
 }
        public void Stop()
        {
            ThreadChecker.AssertMainThread();

            ReliableChannel.StopIO();
            this.tcpSocket.Stop();
            this.unreliableChannel.StopIO();
        }