mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
30e814dd4b
If a resume request is rejected because the session timed out, indicate the number of handled stanzas as per version 1.5 of XEP-0198.
14 lines
523 B
Erlang
14 lines
523 B
Erlang
-ifndef(EJABBERD_SM_HRL).
|
|
-define(EJABBERD_SM_HRL, true).
|
|
|
|
-record(session, {sid, usr, us, priority, info}).
|
|
-record(session_counter, {vhost, count}).
|
|
-type sid() :: {erlang:timestamp(), pid()} | {erlang:timestamp(), undefined}.
|
|
-type ip() :: {inet:ip_address(), inet:port_number()} | undefined.
|
|
-type info() :: [{conn, atom()} | {ip, ip()} | {node, atom()}
|
|
| {oor, boolean()} | {auth_module, atom()}
|
|
| {num_stanzas_in, non_neg_integer()}].
|
|
-type prio() :: undefined | integer().
|
|
|
|
-endif.
|