reagent v0.1.13 Reagent.Behaviour behaviour

Summary

Functions

Uses the reagent behaviour and defines the default callbacks

Callbacks

Accept a client connection from the listener

Handle the connection, either define this or start/1

Start the process that will handle the connection, either define this or handle/1

Functions

__using__(opts) (macro)

Uses the reagent behaviour and defines the default callbacks.

Callbacks

accept(arg0)
accept(Reagent.Listener.t) :: {:ok, Socket.t} | {:error, term}

Accept a client connection from the listener.

handle(arg0)
handle(Reagent.Connection.t) :: :ok | {:error, term}

Handle the connection, either define this or start/1.

start(arg0)
start(Reagent.Connection.t) :: {:ok, pid} | {:error, term}

Start the process that will handle the connection, either define this or handle/1.