jabberd2
2.3.2
|
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... | |
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... | |
There is one instance of this struct per user who is logged in to this c2s instance.
data for a single session
c2s_t sess_st::c2s |
Definition at line 75 of file c2s.h.
Referenced by _authreg_auth_set(), _c2s_client_mio_callback(), _c2s_client_sx_callback(), _pbx_process_command(), _session_in_router(), _session_pkt_router(), _sm_build_route(), c2s_router_sx_callback(), pkt_sess(), sess_route(), sm_c2s_action(), sm_create(), sm_delete(), sm_end(), sm_packet(), and sm_start().
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 |
Definition at line 83 of file c2s.h.
Referenced by _c2s_client_mio_callback(), _c2s_client_sx_callback(), _c2s_time_checks(), and JABBER_MAIN().
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 |
Definition at line 86 of file c2s.h.
Referenced by _authreg_auth_get(), _authreg_auth_log(), _authreg_auth_set(), _authreg_register_get(), _authreg_register_set(), _c2s_client_mio_callback(), _c2s_client_sx_callback(), _c2s_component_presence(), _c2s_time_checks(), authreg_process(), c2s_router_sx_callback(), and JABBER_MAIN().
host_t sess_st::host |
host this session belongs to
Definition at line 89 of file c2s.h.
Referenced by _authreg_auth_get(), _authreg_auth_log(), _authreg_auth_set(), _authreg_register_get(), _authreg_register_set(), _c2s_client_sx_callback(), and c2s_router_sx_callback().
rate_t sess_st::rate |
Definition at line 91 of file c2s.h.
Referenced by _c2s_client_mio_callback(), _c2s_client_sx_callback(), _c2s_time_checks(), and JABBER_MAIN().
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 |
Definition at line 103 of file c2s.h.
Referenced by _authreg_auth_set(), _authreg_register_set(), _c2s_client_mio_callback(), _c2s_client_sx_callback(), _c2s_component_presence(), _pbx_process_command(), c2s_router_sx_callback(), and JABBER_MAIN().
int sess_st::active |
Definition at line 105 of file c2s.h.
Referenced by _authreg_auth_get(), _authreg_auth_set(), _authreg_register_get(), _authreg_register_set(), _c2s_client_mio_callback(), _c2s_client_sx_callback(), _c2s_component_presence(), c2s_router_sx_callback(), and JABBER_MAIN().
nad_t sess_st::result |
Definition at line 108 of file c2s.h.
Referenced by _authreg_auth_set(), _authreg_register_set(), _c2s_client_sx_callback(), _pbx_process_command(), c2s_router_sx_callback(), and JABBER_MAIN().
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().
pool_t sess_st::p |
memory pool this session is allocated off
Definition at line 253 of file sm.h.
Referenced by _iq_private_in_sess(), _privacy_in_sess(), sess_end(), and sess_start().
user_t sess_st::user |
user this session belongs to
Definition at line 255 of file sm.h.
Referenced by _announce_broadcast_user(), _announce_in_sess(), _iq_last_sess_end(), _iq_private_in_sess(), _iq_vcard_in_sess(), _offline_in_sess(), _privacy_in_sess(), _roster_in_sess(), _roster_in_sess_s10n(), _roster_set_item(), _roster_update_walker(), _sess_end_guts(), _status_in_sess(), _status_sess_end(), _status_sess_start(), _vacation_in_sess(), pres_deliver(), pres_roster(), pres_update(), sess_end(), sess_route(), sess_start(), and sm_c2s_action().
jid_t sess_st::jid |
session jid (user@host/res)
Definition at line 257 of file sm.h.
Referenced by _amp_in_sess(), _announce_broadcast_user(), _announce_in_sess(), _deliver_in_sess(), _disco_in_sess_result(), _disco_sessions_result(), _iq_last_sess_end(), _iq_private_in_sess(), _iq_vcard_in_sess(), _offline_in_sess(), _offline_pkt_user(), _pep_in_sess(), _pep_out_sess(), _pres_top(), _presence_in_sess(), _privacy_in_sess(), _roster_in_sess_s10n(), _roster_push(), _roster_set_item(), _status_in_sess(), _status_sess_end(), _status_sess_start(), _unblock_jid(), _vacation_in_sess(), pkt_sess(), pres_in(), pres_roster(), pres_update(), sess_end(), sess_match(), sess_route(), and sess_start().
char sess_st::c2s[1024] |
char sess_st::sm_id[41] |
local id (for session control)
Definition at line 261 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 262 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 264 of file sm.h.
Referenced by _unblock_jid(), pres_in(), pres_roster(), and pres_update().
int sess_st::available |
true if this session is available
Definition at line 266 of file sm.h.
Referenced by _announce_broadcast_user(), _offline_pkt_user(), _pres_top(), _presence_in_router(), _privacy_in_sess(), _sess_end_guts(), _unblock_jid(), pres_in(), pres_roster(), and pres_update().
int sess_st::pri |
current priority of this session
Definition at line 267 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 268 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 270 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 271 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 273 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 |
next session (in a list of sessions)
Definition at line 275 of file sm.h.
Referenced by _announce_broadcast_user(), _iq_private_in_sess(), _offline_pkt_user(), _pres_top(), _presence_in_router(), _privacy_in_sess(), _roster_push(), _sess_end_guts(), _unblock_jid(), pres_in(), pres_update(), sess_match(), sess_start(), sm_storage_rate_limit(), and user_delete().