C# Class Renci.SshNet.ForwardedPortDynamic

Datei anzeigen Open project: sshnet/SSH.NET

Private Methods

Method Description
AcceptCompleted ( object sender, SocketAsyncEventArgs e ) : void
Channel_Exception ( object sender, System.ExceptionEventArgs e ) : void
CloseClientSocket ( Socket clientSocket ) : void
HandleSocks ( IChannelDirectTcpip channel, Socket clientSocket, System.TimeSpan timeout ) : bool
HandleSocks4 ( Socket socket, IChannelDirectTcpip channel, System.TimeSpan timeout ) : bool
HandleSocks5 ( Socket socket, IChannelDirectTcpip channel, System.TimeSpan timeout ) : bool
InitializePendingChannelCountdown ( ) : void

Initializes the CountdownEvent.

When the port is started for the first time, a CountdownEvent is created with an initial count of 1.

On subsequent (re)starts, we'll dispose the current CountdownEvent and create a new one with initial count of 1.

ProcessAccept ( Socket clientSocket ) : void
ReadString ( Socket socket, System.TimeSpan timeout ) : string

Reads a null terminated string from a socket.

Session_Disconnected ( object sender, EventArgs e ) : void
Session_ErrorOccured ( object sender, System.ExceptionEventArgs e ) : void
StartAccept ( SocketAsyncEventArgs e ) : void