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

Link to this section Summary

Link to this section Functions

Link to this function

code_change(OldVsn, StateName, State, Extra)

View Source
Link to this function

handle_event(Type, Content, StateName, State)

View Source
Link to this function

set_conn_limiter(Acceptor, Limiter)

View Source
-spec set_conn_limiter(pid(), esockd_generic_limiter:limiter()) -> ok.
Link to this function

start_link(Proto, ListenOn, ConnSup, TuneFun, UpgradeFuns, Limiter, LSock)

View Source
-spec start_link(atom(),
           esockd:listen_on(),
           pid(),
           esockd:sock_fun(),
           [esockd:sock_fun()],
           esockd_generic_limiter:limiter(),
           inet:socket()) ->
              {ok, pid()} | {error, term()}.
Start an acceptor
Link to this function

terminate(Reason, StateName, State)

View Source