View Source esockd_listener_sup (esockd v5.9.3-rc.1)

Link to this section Summary

Link to this section Types

-type listen_type() :: tcp | dtls.

Link to this section Functions

-spec acceptor_sup(pid()) -> pid().
Get acceptor supervisor.
Link to this function

conn_limiter_opt(Opt, DefName)

View Source
Link to this function

conn_limiter_opts(Opts, DefName)

View Source
-spec connection_sup(pid()) -> pid().
Get connection supervisor.
Link to this function

get_current_connections(Sup)

View Source
Link to this function

get_max_conn_rate(Sup, Proto, ListenOn)

View Source
Link to this function

get_max_connections(Sup)

View Source
-spec listener(pid()) -> pid().
Get listener.
Link to this function

set_max_conn_rate(Sup, Proto, ListenOn, Opts)

View Source
Link to this function

set_max_connections(Sup, MaxConns)

View Source
Link to this function

start_link(Type, Proto, ListenOn, Opts, MFA)

View Source
-spec start_link(listen_type(), atom(), esockd:listen_on(), [esockd:option()], esockd:mfargs()) ->
              {ok, pid()} | {error, term()}.
Start listener supervisor