SSHTransport constructor
SSHTransport(
- SSHSocket socket, {
- bool isServer = false,
- String version = 'DartSSH_2.0',
- SSHPrintHandler? printDebug,
- SSHPrintHandler? printTrace,
- SSHAlgorithms algorithms = const SSHAlgorithms(),
- SSHHostkeyVerifyHandler? onVerifyHostKey,
- SSHTransportReadyHandler? onReady,
- SSHPacketHandler? onPacket,
Implementation
SSHTransport(
this.socket, {
this.isServer = false,
this.version = 'DartSSH_2.0',
this.printDebug,
this.printTrace,
this.algorithms = const SSHAlgorithms(),
this.onVerifyHostKey,
this.onReady,
this.onPacket,
}) {
_initSocket();
_startHandshake();
}