RelayDrain class
- Implemented types
Constructors
- RelayDrain({double deadlineSeconds = 0.0})
-
RelayDrain.fromJson(Map<
String, dynamic> json) -
factory
- RelayDrain.fromReader(TeleportObjectReader reader)
-
factory
- RelayDrain.fromTeleport(Uint8List data)
-
factory
Properties
- deadlineSeconds ↔ double
-
Sent by a relay that is about to be stopped for an update. The agent connects to another relay,
moves its tunnels and claims there, and keeps this session open only until the connections already
on it end. The relay closes what is left once this many seconds have passed.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
- fieldIdDeadlineSeconds → const int
-
teleportMessageType
→ const TeleportMessageType<
RelayDrain> - teleportOpcode → const int
- teleportVersion → const int