jabberd2  2.2.16
Data Fields
sess_st Struct Reference

There is one instance of this struct per user who is logged in to this c2s instance. More...

#include <c2s.h>

Data Fields

c2s_t c2s
mio_fd_t fd
char skey [44]
char * smcomp
char * ip
int port
sx_t s
host_t host
 host this session belongs to
rate_t rate
int rate_log
rate_t stanza_rate
int stanza_rate_log
time_t last_activity
unsigned int packet_count
int bound
bres_t resources
int active
nad_t result
int sasl_authd
pool_t p
 memory pool this session is allocated off
user_t user
 user this session belongs to
jid_t jid
 session jid (user@host/res)
char c2s [1024]
 id of c2s that is handling their connection
char sm_id [41]
 local id (for session control)
char c2s_id [44]
 remote id (for session control)
pkt_t pres
 copy of the last presence packet we received
int available
 true if this session is available
int pri
 current priority of this session
int fake
 true if session is fake (ie.
jid_t A
 list of jids that this session has sent directed presence to
jid_t E
 list of jids that bounced presence updates we sent them
void ** module_data
 per-session module data
sess_t next
 next session (in a list of sessions)

Detailed Description

There is one instance of this struct per user who is logged in to this c2s instance.

data for a single session

Definition at line 250 of file sm.h.


Field Documentation

Definition at line 77 of file c2s.h.

Referenced by _c2s_client_sx_callback(), _c2s_client_mio_callback(), and _c2s_time_checks().

char sess_st::skey[44]

Definition at line 79 of file c2s.h.

Referenced by _c2s_client_mio_callback(), c2s_router_sx_callback(), and _pbx_process_command().

Definition at line 81 of file c2s.h.

Referenced by c2s_router_sx_callback(), JABBER_MAIN(), _sm_build_route(), and sm_packet().

char* sess_st::ip

Definition at line 84 of file c2s.h.

Referenced by _c2s_client_sx_callback(), _c2s_client_mio_callback(), and _c2s_time_checks().

Definition at line 91 of file c2s.h.

Referenced by _c2s_client_sx_callback(), _c2s_time_checks(), and JABBER_MAIN().

Definition at line 92 of file c2s.h.

Referenced by _c2s_client_sx_callback().

Definition at line 94 of file c2s.h.

Referenced by _c2s_client_sx_callback(), and JABBER_MAIN().

Definition at line 95 of file c2s.h.

Referenced by _c2s_client_sx_callback().

Definition at line 97 of file c2s.h.

Referenced by _c2s_client_mio_callback(), _c2s_time_checks(), and _pbx_process_command().

unsigned int sess_st::packet_count

Definition at line 98 of file c2s.h.

Referenced by _c2s_client_sx_callback(), _c2s_client_mio_callback(), and c2s_router_sx_callback().

Definition at line 101 of file c2s.h.

Referenced by _c2s_client_sx_callback(), and c2s_router_sx_callback().

Definition at line 110 of file c2s.h.

Referenced by authreg_process(), _c2s_client_sx_callback(), and c2s_router_sx_callback().

memory pool this session is allocated off

Definition at line 251 of file sm.h.

Referenced by _iq_private_in_sess(), _privacy_in_sess(), sess_end(), and sess_start().

char sess_st::c2s[1024]

id of c2s that is handling their connection

Definition at line 257 of file sm.h.

char sess_st::sm_id[41]

local id (for session control)

Definition at line 259 of file sm.h.

Referenced by sm_c2s_action(), _session_in_router(), sess_route(), _sess_end_guts(), and sess_start().

char sess_st::c2s_id[44]

remote id (for session control)

Definition at line 260 of file sm.h.

Referenced by sm_c2s_action(), _session_in_router(), sess_route(), and sess_start().

copy of the last presence packet we received

Definition at line 262 of file sm.h.

Referenced by _unblock_jid(), pres_update(), pres_in(), and pres_roster().

current priority of this session

Definition at line 265 of file sm.h.

Referenced by _announce_broadcast_user(), _offline_in_sess(), _offline_pkt_user(), _pres_top(), pres_update(), and sess_start().

true if session is fake (ie.

PBX)

Definition at line 266 of file sm.h.

Referenced by _session_in_router(), _pres_top(), pres_update(), and pres_in().

list of jids that this session has sent directed presence to

Definition at line 268 of file sm.h.

Referenced by _unblock_jid(), _privacy_in_sess(), pres_update(), pres_error(), pres_deliver(), pres_roster(), and _sess_end_guts().

list of jids that bounced presence updates we sent them

Definition at line 269 of file sm.h.

Referenced by _unblock_jid(), _privacy_in_sess(), pres_update(), pres_in(), pres_error(), pres_deliver(), and pres_roster().

per-session module data

Definition at line 271 of file sm.h.

Referenced by _iq_private_in_sess(), _privacy_in_router(), _privacy_out_router(), _privacy_in_sess(), _roster_push(), _roster_in_sess(), and sess_start().


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