C# Class Granados.SSHConnection

A static class for creating a new SSH connection
显示文件 Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method Description
Connect ( Socket socket, SSHConnectionParameter param, ISSHConnectionEventHandler>.Func connectionEventHandlerCreator = null, ISSHProtocolEventLogger>.Func protocolEventLoggerCreator = null ) : ISSHConnection

Establish a SSH connection

Method Details

Connect() public static method

Establish a SSH connection
public static Connect ( Socket socket, SSHConnectionParameter param, ISSHConnectionEventHandler>.Func connectionEventHandlerCreator = null, ISSHProtocolEventLogger>.Func protocolEventLoggerCreator = null ) : ISSHConnection
socket System.Net.Sockets.Socket TCP socket which is already connected to the server.
param SSHConnectionParameter SSH connection parameter
connectionEventHandlerCreator ISSHConnectionEventHandler>.Func a factory function to create a connection event handler (can be null)
protocolEventLoggerCreator ISSHProtocolEventLogger>.Func a factory function to create a protocol log event handler (can be null)
return ISSHConnection