Pool.Listener

Manages a collection of socket acceptors and an active listening socket from a transport.

Source

Summary

init(args)

Inits the listener’s state, creating the pool of acceptor processes as well

start_link(opts)

On successful start of the listener, send the pid and ref to be tracked by Pool.Server

Functions

init(args)

Specs:

  • init(list) :: {:ok, term}

Inits the listener’s state, creating the pool of acceptor processes as well.

Source
start_link(opts)

Specs:

  • start_link(list) :: {:ok, pid} | {:error, any}

On successful start of the listener, send the pid and ref to be tracked by Pool.Server.

Source