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

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

Called whenever an unhandled Exception occurs in Session causing the message loop to be interrupted, or when an exception occurred processing a channel message.
protected OnErrorOccured ( Exception exp ) : void
exp System.Exception
Результат void
        protected override void OnErrorOccured(Exception exp)
        {
            base.OnErrorOccured(exp);

            // signal to the client that we will not send anything anymore; this will also interrupt the
            // blocking receive in Bind if the client sends FIN/ACK in time
            //
            // if the FIN/ACK is not sent in time, the socket will be closed in Close(bool)
            ShutdownSocket(SocketShutdown.Send);
        }