TunnelRegistration class

A live tunnel held by the Hub: a public serverSocket whose accepted connections are bridged to targetHost:targetPort over the exposer's connection.

Constructors

TunnelRegistration({required String tunnelId, required String ownerConnId, required String exposerConnId, required Principal owner, required String nodeId, required String targetHost, required int targetPort, required String publicHost, required int publicPort, required ServerSocket serverSocket, required DateTime createdAt, bool secure = false})
Creates a tunnel registration.

Properties

createdAt DateTime
When the tunnel was opened.
final
exposerConnId String
The connection id of the exposer — the node's peer, or (for a @local tunnel) the owning client itself.
final
hashCode int
The hash code for this object.
no setterinherited
nodeId String
The exposer node id, or TunnelRegistration.localNode.
final
owner Principal
The principal that owns the tunnel.
final
ownerConnId String
The connection id of the client that owns (requested) the tunnel.
final
publicHost String
The host the Hub advertises for the public listener.
final
publicPort int
The public TCP port the Hub listens on.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secure bool
Whether the public port terminates TLS (HTTPS). When true, accepted connections are upgraded with the Hub's tunnel TLS context before bridging.
final
serverSocket ServerSocket
The bound public listener.
final
targetHost String
The internal host the exposer dials for each connection.
final
targetPort int
The internal TCP port the exposer dials for each connection.
final
tunnelId String
The minted tunnel id.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toInfo() TunnelInfo
A wire-safe view of this tunnel.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

localNode → const String
The @local sentinel node id (the owning client's own machine).