Behaviours: gen_server.
add_connection/2 | Add a connection to the listener's pool. |
get_max_connections/1 | Return the max number of connections allowed concurrently. |
get_port/1 | Return the listener's port. |
get_protocol_options/1 | Return the current protocol options. |
remove_connection/1 | Remove this process' connection from the pool. |
set_max_connections/2 | Set the max number of connections allowed concurrently. |
set_protocol_options/2 | Upgrade the protocol options. |
add_connection(ServerPid::pid(), ConnPid::pid()) -> non_neg_integer()
Add a connection to the listener's pool.
get_max_connections(ServerPid::pid()) -> {ok, ranch:max_conns()}
Return the max number of connections allowed concurrently.
get_port(ServerPid::pid()) -> {ok, inet:port_number()}
Return the listener's port.
get_protocol_options(ServerPid::pid()) -> {ok, any()}
Return the current protocol options.
remove_connection(ServerPid::pid()) -> non_neg_integer()
Remove this process' connection from the pool.
Useful if you have long-lived connections that aren't taking up resources and shouldn't be counted in the limited number of running connections.set_max_connections(ServerPid::pid(), MaxConnections::ranch:max_conns()) -> ok
Set the max number of connections allowed concurrently.
set_protocol_options(ServerPid::pid(), ProtoOpts::any()) -> ok
Upgrade the protocol options.
Generated by EDoc, Aug 3 2013, 11:17:12.