ankh v0.10.0 Ankh.Transport protocol
Transport behavior
Link to this section Summary
Functions
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
Link to this type
size()
Specs
size() :: non_neg_integer()
Size
Specs
t() :: struct()
Transport socket
Link to this section Functions
Link to this function
accept(transport, options)
Specs
Accepts a client connection
Link to this function
close(transport)
Specs
Closes the connection
Link to this function
connect(transport, uri, timeout, options)
Specs
Connects to an host
Link to this function
handle_msg(transport, message)
Specs
Handles transport messages
Link to this function
recv(transport, size, timeout)
Specs
Receives data
Link to this function
send(transport, data)
Specs
Sends data