Module ejabberd_listener [erl svg]

Function Index

accept/3*
accept/4*
add_listener/3Add a listener and store in config if success.
add_proto/2*
bind_tcp_port/3*
bind_tcp_ports/0*
certfile_readable/1*
check_listener_options/1*
check_rate_limit/1*
delete_listener/2
delete_listener/3*
format_error/1*
get_ip_tuple/2*
get_listener_pid_by_port/1*
get_proto/1*
includes_deprecated_ssl_option/1*
init/1
init/3
init_tcp/6*
init_udp/6*
is_frontend/1*
listen_tcp/5*
normalize_proto/1*
parse_listener_portip/2Parse any kind of ejabberd listener specification.
prepare_opts/3*
rate_limit/2
report_duplicated_portips/1*
socket_error/6*
start/3
start_dependent/3*
start_link/0
start_listener/3
start_listener2/3*
start_listener_sup/3*
start_listeners/0
start_module_sup/2*
stop_listener/2
stop_listeners/0
strip_frontend/1*
strip_ip_option/1*
udp_recv/3*

Function Details

accept/3 *

accept(ListenSocket, Module, Opts) -> any()

accept/4 *

accept(ListenSocket, Module, Opts, Interval) -> any()

add_listener/3

add_listener(PortIP, Module, Opts) -> {ok, Pid} | {error, Error}

Add a listener and store in config if success

add_proto/2 *

add_proto(Port, Opts) -> any()

bind_tcp_port/3 *

bind_tcp_port(PortIP, Module, RawOpts) -> any()

bind_tcp_ports/0 *

bind_tcp_ports() -> any()

certfile_readable/1 *

certfile_readable(Opts) -> true | {false, Path::string()}

check_listener_options/1 *

check_listener_options(Opts) -> any()

check_rate_limit/1 *

check_rate_limit(Interval) -> any()

delete_listener/2

delete_listener(PortIP, Module) -> any()

delete_listener/3 *

delete_listener(PortIP, Module, Opts) -> ok

format_error/1 *

format_error(Reason) -> any()

get_ip_tuple/2 *

get_ip_tuple(IPOpt, IPVOpt) -> any()

get_listener_pid_by_port/1 *

get_listener_pid_by_port(Port) -> any()

get_proto/1 *

get_proto(Opts) -> any()

includes_deprecated_ssl_option/1 *

includes_deprecated_ssl_option(Opts) -> true | false

init/1

init(X1) -> any()

init/3

init(PortIP, Module, RawOpts) -> any()

init_tcp/6 *

init_tcp(PortIP, Module, Opts, SockOpts, Port, IPS) -> any()

init_udp/6 *

init_udp(PortIP, Module, Opts, SockOpts, Port, IPS) -> any()

is_frontend/1 *

is_frontend(X1) -> any()

listen_tcp/5 *

listen_tcp(PortIP, Module, SockOpts, Port, IPS) -> any()

normalize_proto/1 *

normalize_proto(UnknownProto) -> any()

parse_listener_portip/2

parse_listener_portip(PortIP, Opts) -> {Port, IPT, IPS, IPV, OptsClean}

Parse any kind of ejabberd listener specification. The parsed options are returned in several formats. OptsClean does not include inet/inet6 or ip options. Opts can include the options inet6 and {ip, Tuple}, but they are only used when no IP address was specified in the PortIP. The IP version (either IPv4 or IPv6) is inferred from the IP address type, so the option inet/inet6 is only used when no IP is specified at all.

prepare_opts/3 *

prepare_opts(IPT, IPV, OptsClean) -> any()

rate_limit/2

rate_limit(Ports, Interval) -> any()

report_duplicated_portips/1 *

report_duplicated_portips(L) -> any()

socket_error/6 *

socket_error(Reason, PortIP, Module, SockOpts, Port, IPS) -> any()

start/3

start(Port, Module, Opts) -> any()

start_dependent/3 *

start_dependent(Port, Module, Opts) -> any()

start_link/0

start_link() -> any()

start_listener/3

start_listener(Port, Module, Opts) -> {ok, Pid} | {error, Error}

start_listener2/3 *

start_listener2(Port, Module, Opts) -> {ok, Pid} | {error, Error}

start_listener_sup/3 *

start_listener_sup(Port, Module, Opts) -> any()

start_listeners/0

start_listeners() -> any()

start_module_sup/2 *

start_module_sup(Port, Module) -> any()

stop_listener/2

stop_listener(PortIP, Module) -> ok

stop_listeners/0

stop_listeners() -> any()

strip_frontend/1 *

strip_frontend(Module) -> any()

strip_ip_option/1 *

strip_ip_option(Opts) -> any()

udp_recv/3 *

udp_recv(Socket, Module, Opts) -> any()


Generated by EDoc, May 23 2012, 07:15:16.