jabberd2
2.2.16
|
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) |
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 75 of file c2s.h.
Referenced by _authreg_auth_set(), _c2s_client_sx_callback(), _c2s_client_mio_callback(), c2s_router_sx_callback(), _pbx_process_command(), _sm_build_route(), sm_start(), sm_end(), sm_create(), sm_delete(), sm_packet(), sm_c2s_action(), _session_in_router(), _session_pkt_router(), pkt_sess(), and sess_route().
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().
char* sess_st::smcomp |
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 83 of file c2s.h.
Referenced by _c2s_client_sx_callback(), _c2s_client_mio_callback(), _c2s_time_checks(), and JABBER_MAIN().
int sess_st::port |
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 86 of file c2s.h.
Referenced by _authreg_auth_log(), _authreg_auth_get(), _authreg_auth_set(), _authreg_register_get(), _authreg_register_set(), authreg_process(), _c2s_client_sx_callback(), _c2s_client_mio_callback(), _c2s_component_presence(), c2s_router_sx_callback(), _c2s_time_checks(), and JABBER_MAIN().
host this session belongs to
Definition at line 89 of file c2s.h.
Referenced by _authreg_auth_log(), _authreg_auth_get(), _authreg_auth_set(), _authreg_register_get(), _authreg_register_set(), _c2s_client_sx_callback(), and c2s_router_sx_callback().
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().
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_sx_callback(), _c2s_client_mio_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().
Definition at line 103 of file c2s.h.
Referenced by _authreg_auth_set(), _authreg_register_set(), _c2s_client_sx_callback(), _c2s_client_mio_callback(), _c2s_component_presence(), c2s_router_sx_callback(), JABBER_MAIN(), and _pbx_process_command().
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_sx_callback(), _c2s_client_mio_callback(), _c2s_component_presence(), c2s_router_sx_callback(), and JABBER_MAIN().
Definition at line 108 of file c2s.h.
Referenced by _authreg_auth_set(), _authreg_register_set(), _c2s_client_sx_callback(), c2s_router_sx_callback(), and JABBER_MAIN().
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().
user this session belongs to
Definition at line 253 of file sm.h.
Referenced by sm_c2s_action(), _announce_in_sess(), _announce_broadcast_user(), _iq_last_sess_end(), _iq_private_in_sess(), _iq_vcard_in_sess(), _offline_in_sess(), _privacy_in_sess(), _roster_in_sess_s10n(), _roster_update_walker(), _roster_set_item(), _roster_in_sess(), _status_sess_start(), _status_sess_end(), _status_in_sess(), _vacation_in_sess(), pres_update(), pres_deliver(), pres_roster(), sess_route(), _sess_end_guts(), sess_end(), and sess_start().
session jid (user@host/res)
Definition at line 255 of file sm.h.
Referenced by _amp_in_sess(), _announce_in_sess(), _announce_broadcast_user(), _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(), _presence_in_sess(), _unblock_jid(), _privacy_in_sess(), _roster_push(), _roster_in_sess_s10n(), _roster_set_item(), _status_sess_start(), _status_sess_end(), _status_in_sess(), _vacation_in_sess(), pkt_sess(), _pres_top(), pres_update(), pres_in(), pres_roster(), sess_route(), sess_end(), sess_start(), and sess_match().
char sess_st::c2s[1024] |
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().
true if this session is available
Definition at line 264 of file sm.h.
Referenced by _announce_broadcast_user(), _offline_pkt_user(), _presence_in_router(), _unblock_jid(), _privacy_in_sess(), _pres_top(), pres_update(), pres_in(), pres_roster(), and _sess_end_guts().
int sess_st::pri |
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().
int sess_st::fake |
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().
void** sess_st::module_data |
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().
next session (in a list of sessions)
Definition at line 273 of file sm.h.
Referenced by sm_storage_rate_limit(), user_delete(), _announce_broadcast_user(), _iq_private_in_sess(), _offline_pkt_user(), _presence_in_router(), _unblock_jid(), _privacy_in_sess(), _roster_push(), _pres_top(), pres_update(), pres_in(), _sess_end_guts(), sess_start(), and sess_match().