25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00
xmpp.chapril.org-ejabberd/include/ejabberd_sm.hrl

14 lines
494 B
Erlang
Raw Normal View History

-ifndef(EJABBERD_SM_HRL).
-define(EJABBERD_SM_HRL, true).
-record(session, {sid, usr, us, priority, info = []}).
2015-03-09 14:39:29 +01:00
-record(session_counter, {vhost, count}).
-type sid() :: {erlang:timestamp(), pid()}.
2015-03-09 14:39:29 +01:00
-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()}].
2015-03-09 14:39:29 +01:00
-type prio() :: undefined | integer().
-endif.