tcp property
latefinal
Implementation
@override
late final Tcp tcp = createTcp(
// Offloaded to a helper isolate: dial is long (a tailnet round trip) and
// contended (callers dial/status concurrently), so it must not block the
// worker. See lib/src/worker/native_offload.dart.
dialFn: (host, port, timeout) =>
offloadTcpDial(host: host, port: port, timeout: timeout),
listenFn: (tailnetPort, tailnetHost) =>
_worker.tcpListenFd(tailnetPort: tailnetPort, tailnetHost: tailnetHost),
closeListenerFn: (listenerId) =>
_worker.closeFdListener(listenerId: listenerId),
);