Behaviours: ?GEN_SERVER.
This module defines the xmpp_stream_out behaviour.
Optional callback functions: init/1, handle_cast/2, handle_call/3, handle_info/2, terminate/2, code_change/3, handle_connect/1, handle_stream_start/2, handle_stream_established/1, handle_stream_downgraded/2, handle_stream_end/2, handle_cdata/2, handle_send/3, handle_recv/3, handle_timeout/1, handle_authenticated_features/2, handle_unauthenticated_features/2, handle_auth_success/2, handle_auth_failure/3, handle_bind_success/1, handle_bind_failure/2, handle_packet/2, tls_options/1, tls_required/1, tls_verify/1, tls_enabled/1, resolve/2, sasl_mechanisms/1, dns_timeout/1, dns_retries/1, default_port/1, connect_options/3, address_families/1, connect_timeout/1.
noreply() = {noreply, state(), timeout()}
socket_error_reason() = inet:posix() | atom()
state() = map()
stop_reason() = {idna, bad_string} | {dns, inet:posix() | inet_res:res_error()} | {stream, reset | {in | out, stream_error()}} | {tls, tls_error_reason()} | {pkix, binary()} | {auth, atom() | binary() | string()} | {bind, stanza_error() | undefined} | {socket, socket_error_reason()} | internal_failure
tls_error_reason() = inet:posix() | atom() | binary()
bind(State::state(), StreamFeatures::stream_features()) -> state()
call(Ref, Msg, Timeout) -> any()
cast(Ref, Msg) -> any()
change_shaper(State::state(), Shaper::p1_shaper:state()) -> state()
close(Pid::pid()) -> ok
close(Pid::pid(), Reason::atom()) -> ok
code_change(OldVsn, State, Extra) -> any()
connect(Ref::pid()) -> ok
format_error(Err::stop_reason()) -> binary()
get_transport(X1) -> any()
init(X1::list()) -> {ok, state(), timeout()} | {stop, term()} | ignore
reply(Ref, Reply) -> any()
send(Pid::pid(), Pkt::xmpp_element()) -> ok
start(Mod, Args, Opts) -> any()
start_link(Mod, Args, Opts) -> any()
stop(Pid::pid()) -> ok
terminate(Reason::term(), State::state()) -> any()
Generated by EDoc, May 24 2025, 01:26:36.