RelayAddTunnel class

Implemented types

Constructors

RelayAddTunnel({int requestId = 0, String protocol = '', int localPort = 0, bool terminateTls = false, String stablePortName = '', String claimToken = '', int claimGeneration = 0, String routeKey = ''})
RelayAddTunnel.fromJson(Map<String, dynamic> json)
factory
RelayAddTunnel.fromReader(TeleportObjectReader reader)
factory
RelayAddTunnel.fromTeleport(Uint8List data)
factory

Properties

claimGeneration ↔ int
Ranks this claim against the port's other claimants: the highest generation holds the port, and the latest claim wins a tie. An app instance sends the time the backend first issued its claims, for its whole life, so an older instance claiming again after a relay restart or a token change never takes the port back from a newer one. 0 ranks lowest.
getter/setter pair
claimToken ↔ String
A reserved port's claim token from the backend. When set, the relay attaches this agent to that port's listener, which it keeps open between agents, and ignores Protocol, TerminateTls and StablePortName, since the reservation fixes them.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
localPort ↔ int
getter/setter pair
protocol ↔ String
getter/setter pair
requestId ↔ int
getter/setter pair
routeKey ↔ String
A random key naming this tunnel, the same each time the agent adds it again. When a TLS connection names a key in its server name (rk-<key>.<host>), the relay serves it only on the tunnel with that key, so a caller holding an old address never reaches the next tunnel on the port. Empty = no key.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stablePortName ↔ String
getter/setter pair
terminateTls ↔ bool
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toProtocolMessage(int senderId, {ProtocolMessageOverrides? overrides}) → ProtocolMessage
Frames the message under its type's opcode and payload version. The type's default flags (unreliable for an unreliable message) are added to overrides' own.
override
toString() → String
A string representation of this object.
inherited
toTeleport() → Uint8List
writeTo(TeleportObjectWriter scope) → void

Operators

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