SSHTunneledSocketImpl class

Implement same SocketInterface as actual Socket but over SSHClient tunnel.

Inheritance

Constructors

SSHTunneledSocketImpl(Uri url, String login, String key, String password, {StringCallback print, StringCallback debugPrint})
SSHTunneledSocketImpl.fromClient(SSHClient client)

Properties

channel Channel
read / write
client SSHClient
read / write
clientOwner bool
read / write
connected VoidCallback
read / write
connectError StringCallback
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
identity Identity
read / write
onDone StringCallback
read / write
onError StringCallback
read / write
onMessage Uint8ListCallback
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shutdownRecv bool
read / write
shutdownSend bool
read / write
sourceHost String
read / write
sourcePort int
read / write
tunnelToHost String
read / write
tunnelToPort int
read / write

Methods

close() → void
Closed the connection.
override
connect(Uri address, VoidCallback connectHandler, StringCallback errorHandler, {int timeoutSeconds = 15, bool ignoreBadCert = false}) → void
Connects to address over SSH tunnel provided by client.
override
handleDone(StringCallback doneHandler) → void
Involes handleDone if the connection is closed normally.
override
handleError(StringCallback errorHandler) → void
Invokes errorHandler if a connection error occurs.
override
listen(Uint8ListCallback messageHandler) → void
Invokes messageHandler upon reading input from the connection.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
openTunnel([String sourceHost = '127.0.0.1', int sourcePort = 1234]) → void
Sends MSG_CHANNEL_OPEN_TCPIP for tunnelToHost:tunnelToPort.
send(String text) → void
Sends text over the socket.
override
sendRaw(Uint8List raw) → void
Sends raw over the socket.
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited