Pool.Protocol behaviour

Specification for protocol layers to implement for interacting with sockets.

Source

Types

ref :: atom

socket :: :inet.socket

transport :: atom

Callbacks

init/4

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.

Source
start_link/4

Specs:

Should spawn a link to init/4 and return the link’s PID.

Source