gen_tailscale_socket (GenTailscale v0.1.0)

View Source

Low-level interface to the sockets generated from gen_tailscale.

Warning

This is a rough proof-of-concept. It uses a crudely modified version of the original gen_tcp_socket module to manage the tcp-sockets and should probably not be used for anything important as is.

Most of the documentation in here is left-over from gen_tcp_socket and cannot be counted on to work as advertised.

Summary

Functions

accept/2

callback_mode()

cancel_monitor/1

close/1

connect(SockAddr, Opts, Timeout)

connect(Address, Port, Opts, Timeout)

controlling_process/2

fdopen(Fd, Opts0)

getopts/2

getremoteaddr/1

getstat/2

handle_event/4

info/1

init/1

listen(Port, Opts0)

monitor/1

peername/1

recv/3

send/2

sendfile/4

setopts/2

shutdown/2

socket_setopts(Socket, Opts)

socket_to_list/1

sockname/1

socknames(Socket)

start_loopback/1

terminate(Reason, State, P_D)

unrecv/2

which_packet_type/1

which_sockets()