SSHTransport constructor

SSHTransport(
  1. SSHSocket socket, {
  2. bool isServer = false,
  3. String version = 'DartSSH_2.0',
  4. SSHPrintHandler? printDebug,
  5. SSHPrintHandler? printTrace,
  6. SSHAlgorithms algorithms = const SSHAlgorithms(),
  7. SSHHostkeyVerifyHandler? onVerifyHostKey,
  8. SSHTransportReadyHandler? onReady,
  9. 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();
}