C# Class Granados.SSH.SSHProtocolVersionReceiver

A class reads SSH protocol version
Datei anzeigen Open project: poderosaproject/poderosa

Public Methods

Method Description
Receive ( PlainSocket sock, long timeout ) : bool

Receive version string.

SSHProtocolVersionReceiver ( ) : System

Constructor

Verify ( SSHProtocol protocol ) : void

Verify server version

Method Details

Receive() public method

Receive version string.
public Receive ( PlainSocket sock, long timeout ) : bool
sock Granados.IO.PlainSocket socket object
timeout long timeout in msec
return bool

SSHProtocolVersionReceiver() public method

Constructor
public SSHProtocolVersionReceiver ( ) : System
return System

Verify() public method

Verify server version
server version doesn't match
public Verify ( SSHProtocol protocol ) : void
protocol SSHProtocol expected protocol version
return void