Renci.SshNet.Channels.ChannelForwardedTcpip.ForwardedPort_Closing C# (CSharp) 메소드

ForwardedPort_Closing() 개인적인 메소드

Occurs as the forwarded port is being stopped.
private ForwardedPort_Closing ( object sender, EventArgs eventArgs ) : void
sender object
eventArgs System.EventArgs
리턴 void
        private void ForwardedPort_Closing(object sender, EventArgs eventArgs)
        {
            // signal to the server that we will not send anything anymore; this will also interrupt the
            // blocking receive in Bind if the server 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);
        }