2015-05-26 10:08:46 +02:00
|
|
|
-ifndef(EJABBERD_SM_HRL).
|
|
|
|
-define(EJABBERD_SM_HRL, true).
|
|
|
|
|
2015-03-09 14:39:29 +01:00
|
|
|
-record(session, {sid, usr, us, priority, info}).
|
|
|
|
-record(session_counter, {vhost, count}).
|
2016-05-24 22:20:58 +02:00
|
|
|
-type sid() :: {erlang:timestamp(), pid()} | {erlang:timestamp(), undefined}.
|
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()}
|
2016-05-24 22:20:58 +02:00
|
|
|
| {oor, boolean()} | {auth_module, atom()}
|
|
|
|
| {num_stanzas_in, non_neg_integer()}].
|
2015-03-09 14:39:29 +01:00
|
|
|
-type prio() :: undefined | integer().
|
2015-05-26 10:08:46 +02:00
|
|
|
|
|
|
|
-endif.
|