2015-05-26 10:08:46 +02:00
|
|
|
-ifndef(EJABBERD_SM_HRL).
|
|
|
|
-define(EJABBERD_SM_HRL, true).
|
|
|
|
|
2016-07-23 01:08:05 +02:00
|
|
|
-record(session, {sid, usr, us, priority, info = []}).
|
2015-03-09 14:39:29 +01:00
|
|
|
-record(session_counter, {vhost, count}).
|
2016-07-23 01:08:05 +02:00
|
|
|
-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()}
|
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.
|