jabberd2  2.5.0
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]
 
const char * smcomp
 
const char * ip
 
int port
 
sx_t s
 
host_t host
 host this session belongs to More...
 
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
 
char auth_challenge [65]
 Apple: session challenge for challenge-response authentication. More...
 
void * authreg_private
 
pool_t p
 memory pool this session is allocated off More...
 
user_t user
 user this session belongs to More...
 
jid_t jid
 session jid (user@host/res) More...
 
char c2s [1024]
 id of c2s that is handling their connection More...
 
char sm_id [41]
 local id (for session control) More...
 
char c2s_id [44]
 remote id (for session control) More...
 
pkt_t pres
 copy of the last presence packet we received More...
 
int available
 true if this session is available More...
 
int pri
 current priority of this session More...
 
int fake
 true if session is fake (ie. More...
 
jid_t A
 list of jids that this session has sent directed presence to More...
 
jid_t E
 list of jids that bounced presence updates we sent them More...
 
void ** module_data
 per-session module data More...
 
sess_t next
 next session (in a list of sessions) More...
 

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 74 of file c2s.h.

Field Documentation

c2s_t sess_st::c2s
mio_fd_t sess_st::fd

Definition at line 77 of file c2s.h.

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

char sess_st::skey[44]

Definition at line 79 of file c2s.h.

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

const char* sess_st::smcomp

Definition at line 81 of file c2s.h.

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

const char* sess_st::ip
int sess_st::port

Definition at line 84 of file c2s.h.

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

sx_t sess_st::s
host_t sess_st::host
rate_t sess_st::rate
int sess_st::rate_log

Definition at line 92 of file c2s.h.

Referenced by _c2s_client_sx_callback().

rate_t sess_st::stanza_rate

Definition at line 94 of file c2s.h.

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

int sess_st::stanza_rate_log

Definition at line 95 of file c2s.h.

Referenced by _c2s_client_sx_callback().

time_t sess_st::last_activity

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_mio_callback(), _c2s_client_sx_callback(), and c2s_router_sx_callback().

int sess_st::bound

Definition at line 101 of file c2s.h.

Referenced by _c2s_client_sx_callback(), and c2s_router_sx_callback().

bres_t sess_st::resources
int sess_st::active
nad_t sess_st::result
int sess_st::sasl_authd

Definition at line 110 of file c2s.h.

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

char sess_st::auth_challenge[65]

Apple: session challenge for challenge-response authentication.

Definition at line 113 of file c2s.h.

Referenced by _authreg_auth_get(), and _authreg_auth_set().

void* sess_st::authreg_private

Definition at line 116 of file c2s.h.

Referenced by _c2s_client_mio_callback().

pool_t sess_st::p

memory pool this session is allocated off

Definition at line 254 of file sm.h.

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

user_t sess_st::user
jid_t sess_st::jid
char sess_st::c2s[1024]

id of c2s that is handling their connection

Definition at line 260 of file sm.h.

char sess_st::sm_id[41]

local id (for session control)

Definition at line 262 of file sm.h.

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

char sess_st::c2s_id[44]

remote id (for session control)

Definition at line 263 of file sm.h.

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

pkt_t sess_st::pres

copy of the last presence packet we received

Definition at line 265 of file sm.h.

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

int sess_st::available
int sess_st::pri

current priority of this session

Definition at line 268 of file sm.h.

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

int sess_st::fake

true if session is fake (ie.

PBX)

Definition at line 269 of file sm.h.

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

jid_t sess_st::A

list of jids that this session has sent directed presence to

Definition at line 271 of file sm.h.

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

jid_t sess_st::E

list of jids that bounced presence updates we sent them

Definition at line 272 of file sm.h.

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

void** sess_st::module_data

per-session module data

Definition at line 274 of file sm.h.

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

sess_t sess_st::next

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