session_struct Struct Reference

#include <jsm.h>


Data Fields

jsmi si
char * res
jid id
udata u
xmlnode presence
int priority
int roster
int c_in
int c_out
time_t started
pool p
int exit_flag
mlist events [es_LAST]
mtq q
jid route
jid sid
char * sc_c2s
char * sc_sm
xht aux_data
struct session_structnext


Detailed Description

structure that holds the data for a single session of a user

Field Documentation

pointer to instance internal data of the session manager

Referenced by _js_session_from(), _js_session_start(), _js_session_to(), js_mapi_call2(), js_sc_session_new(), js_session_end(), js_session_new(), and js_session_route().

the resource of this session

Referenced by js_sc_session_new(), js_session_get(), and js_session_new().

JabberID of the user who owns this session

Referenced by _js_session_from(), js_sc_session_new(), js_session_end(), and js_session_new().

the current global presence of this session

Referenced by _js_session_end(), js_sc_session_new(), js_session_end(), js_session_new(), and js_session_route().

the current priority of this session

Referenced by js_online(), js_sc_session_new(), js_session_end(), js_session_new(), and js_session_primary().

counter for packets received for a client

Referenced by _js_session_to(), js_sc_session_new(), and js_session_new().

counter for packets received from a client

Referenced by _js_session_from(), js_sc_session_new(), and js_session_new().

when the session has been started

Referenced by _js_session_start().

memory pool for this session

Referenced by _js_session_end(), js_mapi_session(), js_sc_session_new(), js_session_end(), and js_session_new().

flag that a session has ended and should not be used anymore

Referenced by _js_session_from(), _js_session_to(), js_sc_session_new(), js_session_end(), and js_session_new().

lists for the callbacks that have registered for the events of this session

Referenced by js_mapi_call2(), js_mapi_session(), js_sc_session_new(), and js_session_new().

our id to send packets to c2s for this session

Referenced by _js_routed_packet(), _js_routed_session_packet(), js_sc_session_new(), js_session_new(), and js_session_route().

the id of the c2s 'user' that handles this session

Referenced by _js_routed_error_packet(), _js_session_end(), js_sc_session_new(), js_session_new(), and js_session_route().

the identifier for the session on c2s if session control protocol is used

Referenced by js_sc_session_new(), and js_session_route().

the identifier for the session on the session manager if session control protocol is used

Referenced by _js_routed_packet(), _js_routed_session_control_packet(), js_sc_session_new(), js_session_end(), and js_session_route().

hash where modules can store additional data for a session (data stored in this hash has to be freed by the module

Referenced by js_sc_session_new(), js_session_free_aux_data(), and js_session_new().


The documentation for this struct was generated from the following file:

Generated on Wed Sep 10 01:59:48 2008 for jabberd14 by  doxygen 1.5.5