Packages
ejabberd
20.2.0
26.4.0
26.3.0
26.2.0
26.1.0
25.10.0
25.8.0
25.7.0
25.4.0
25.3.0
24.12.0
24.10.0
24.7.0
24.6.0
24.2.6
23.10.0
23.4.0
23.1.0
22.10.0
22.5.0
21.12.0
21.7.0
21.4.0
21.1.0
20.12.0
20.7.0
20.4.0
20.3.0
20.2.0
20.1.0
19.9.1
19.9.0
19.8.0
19.5.0
19.2.0
18.12.1
18.12.0
18.6.0
18.4.0
18.3.0
18.1.0
17.11.0
17.9.0
17.6.0
17.3.0
17.1.0
16.12.0-beta1
16.9.0
16.8.0
16.6.2
16.6.1
16.6.0
16.4.1
16.4.0
16.3.0
16.2.0
16.1.0-beta1
Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
Current section
Files
Jump to
Current section
Files
src/mod_ping_opt.erl
%% Generated automatically
%% DO NOT EDIT: run `make options` instead
-module(mod_ping_opt).
-export([ping_ack_timeout/1]).
-export([ping_interval/1]).
-export([send_pings/1]).
-export([timeout_action/1]).
-spec ping_ack_timeout(gen_mod:opts() | global | binary()) -> 'undefined' | pos_integer().
ping_ack_timeout(Opts) when is_map(Opts) ->
gen_mod:get_opt(ping_ack_timeout, Opts);
ping_ack_timeout(Host) ->
gen_mod:get_module_opt(Host, mod_ping, ping_ack_timeout).
-spec ping_interval(gen_mod:opts() | global | binary()) -> pos_integer().
ping_interval(Opts) when is_map(Opts) ->
gen_mod:get_opt(ping_interval, Opts);
ping_interval(Host) ->
gen_mod:get_module_opt(Host, mod_ping, ping_interval).
-spec send_pings(gen_mod:opts() | global | binary()) -> boolean().
send_pings(Opts) when is_map(Opts) ->
gen_mod:get_opt(send_pings, Opts);
send_pings(Host) ->
gen_mod:get_module_opt(Host, mod_ping, send_pings).
-spec timeout_action(gen_mod:opts() | global | binary()) -> 'kill' | 'none'.
timeout_action(Opts) when is_map(Opts) ->
gen_mod:get_opt(timeout_action, Opts);
timeout_action(Host) ->
gen_mod:get_module_opt(Host, mod_ping, timeout_action).