info() -> [{Ref, Info}] info(Ref) -> Info Info :: [{Key :: atom(), Value :: any()}]
ranch:info - Overview of Ranch listeners
info() -> [{Ref, Info}] info(Ref) -> Info Info :: [{Key :: atom(), Value :: any()}]
Overview of Ranch listeners.
The listener name.
Returns detailed information about one or all Ranch listeners. The following keys are returned:
Pid of the listener's top-level supervisor.
Listener status, either running or suspended.
Interface Ranch listens on.
Port number Ranch listens on.
Number of acceptor processes.
Maximum number of connections.
Number of active connections.
Number of connections, including those removed from the count.
Transport module.
Transport options.
Protocol module.
Protocol options.
AllInfo = ranch:info().
Info = ranch:info(example).
ranch:get_addr(3), ranch:get_port(3), ranch:procs(3), ranch(3)
Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:
Recurring payment options are also available via GitHub Sponsors. These funds are used to cover the recurring expenses like food, dedicated servers or domain names.