Tailscale.Tcp.Stream
(Tailscale v0.3.3)
View Source
Tailscale TCP sockets (connected).
Summary
Functions
Get the local address on which this TCP stream is bound.
Receive data from the TCP socket, blocking until at least one byte can be received.
Get the remote address to which this TCP stream is connected.
Send data over the TCP socket, blocking until at least one byte can be sent.
Send the payload over the TCP socket, blocking until it is fully sent.
Types
Functions
@spec local_addr(t()) :: {:inet.ip_address(), :inet.port_number()}
Get the local address on which this TCP stream is bound.
Receive data from the TCP socket, blocking until at least one byte can be received.
@spec remote_addr(t()) :: {:inet.ip_address(), :inet.port_number()}
Get the remote address to which this TCP stream is connected.
Send data over the TCP socket, blocking until at least one byte can be sent.
Returns the number of bytes actually sent.
Send the payload over the TCP socket, blocking until it is fully sent.