Tcp class abstract

Raw TCP primitives between tailnet nodes.

TCP is exposed as package-native TailscaleConnection and TailscaleListener types rather than fake dart:io sockets. Go owns the tailnet connection establishment and hands Dart a private local data-plane capability; Dart owns application-facing stream lifecycle.

Constructors

Tcp()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind({required int port, String? address}) Future<TailscaleListener>
Accepts inbound TCP connections on the tailnet.
dial(String host, int port, {Duration? timeout}) Future<TailscaleConnection>
Opens a TCP connection to a node on the tailnet.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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