Pool.Protocol behaviour
Specification for protocol layers to implement for interacting with sockets.
Types ↑
ref :: atom
socket :: :inet.socket
transport :: atom
Callbacks
Specs:
Should kick off a loop to wait for data. On receipt, it should process the incoming data and wait for more. When applicable, a response should be sent.
Specs:
Should spawn a link to init/4
and return the
link’s PID.