SSHTunneledSocketImpl class
Implement same SocketInterface as actual Socket but over SSHClient tunnel.
- Inheritance
-
- Object
- ConnectionInterface
- SocketInterface
- SSHTunneledSocketImpl
Constructors
- SSHTunneledSocketImpl(Uri url, String login, String key, String password, {StringCallback print, StringCallback debugPrint})
- SSHTunneledSocketImpl.fromClient(SSHClient client)
Properties
- channel ↔ Channel
-
getter/setter pair
- client ↔ SSHClient
-
getter/setter pair
- clientOwner ↔ bool
-
getter/setter pair
- connected → bool
-
no setteroverride
- connectError ↔ StringCallback
-
getter/setter pair
- connectHandler ↔ VoidCallback
-
getter/setter pair
- connecting → bool
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- identity ↔ Identity
-
getter/setter pair
- onDone ↔ StringCallback
-
getter/setter pair
- onError ↔ StringCallback
-
getter/setter pair
- onMessage ↔ Uint8ListCallback
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shutdownRecv ↔ bool
-
getter/setter pair
- shutdownSend ↔ bool
-
getter/setter pair
- sourceHost ↔ String
-
getter/setter pair
- sourcePort ↔ int
-
getter/setter pair
- tunnelToHost ↔ String
-
getter/setter pair
- tunnelToPort ↔ int
-
getter/setter pair
Methods
-
close(
) → void -
Closed the connection.
override
-
connect(
Uri address, VoidCallback connectCallback, 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 nonexistent 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 -
shutdown(
ConnectionDirection direction) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited