Tailscale.Tcp.Listener
(Tailscale v0.3.3)
View Source
Tailscale TCP listening socket functionality.
Summary
Functions
Accept an incoming connection on the socket, yielding a connected Tailscale.Tcp.Stream.
Get the local address on which this listener is bound.
Types
Functions
@spec accept(t()) :: {:ok, Tailscale.Tcp.Stream.t()} | {:error, any()}
Accept an incoming connection on the socket, yielding a connected Tailscale.Tcp.Stream.
Blocks until a connection is ready.
@spec local_addr(t()) :: {:inet.ip_address(), :inet.port_number()}
Get the local address on which this listener is bound.