ankh v0.8.11 Ankh.Transport behaviour
Transport behavior
Link to this section Summary
Callbacks
Accepts a client connection
Closes the connection
Connects to an host
Handles transport messages
Receives data
Sends data
Link to this section Types
Link to this type
options()
Specs
options() :: Keyword.t()
Transport options
Valid options are:
transport_opts
: Transport options for the tcp/ssl erlang modules
Specs
t() :: any()
Transport socket
Link to this section Callbacks
Link to this callback
accept(t, arg2)
Specs
Accepts a client connection
Link to this callback
close(t)
Specs
Closes the connection
Link to this callback
connect(arg1, arg2)
Specs
Connects to an host
Link to this callback
handle_msg(any)
Specs
Handles transport messages
Link to this callback
recv(t, integer)
Specs
Receives data
Link to this callback
send(t, iodata)
Specs
Sends data