Renci.SshNet.Channels.ChannelDirectTcpip.OnDisconnected C# (CSharp) Метод

OnDisconnected() защищенный Метод

Called when the server wants to terminate the connection immmediately.
The sender MUST NOT send or receive any data after this message, and the recipient MUST NOT accept any data after receiving this message.
protected OnDisconnected ( ) : void
Результат void
        protected override void OnDisconnected()
        {
            base.OnDisconnected();

            // the channel will accept or send no more data, and hence it does not make sense
            // to accept any more data from the client (and we surely won't send anything
            // anymore)
            //
            // so lets signal to the client that we will not send or receive anything anymore
            // this will also interrupt the blocking receive in Bind()
            ShutdownSocket(SocketShutdown.Both);
        }