jabberd2
2.2.16
|
session manager global context More...
#include <sm.h>
Data Fields | |
char * | id |
component id | |
char * | router_ip |
ip to connect to the router at | |
int | router_port |
port to connect to the router at | |
char * | router_user |
username to authenticate to the router as | |
char * | router_pass |
password to authenticate to the router with | |
char * | router_pemfile |
name of file containing a SSL certificate & key for channel to the router | |
mio_t | mio |
mio context | |
sx_env_t | sx_env |
SX environment. | |
sx_plugin_t | sx_sasl |
SX SASL plugin. | |
sx_plugin_t | sx_ssl |
SX SSL plugin. | |
sx_t | router |
SX of router connection. | |
mio_fd_t | fd |
file descriptor of router connection | |
xht | users |
pointers to currently loaded users (key is user@domain) | |
xht | sessions |
pointers to all connected sessions (key is random sm id) | |
xht | xmlns |
index of namespaces (for iq sub-namespace in pkt_t) | |
xht | xmlns_refcount |
ref-counting for modules namespaces | |
xht | features |
feature index (key is feature string | |
config_t | config |
config context | |
log_t | log |
log context | |
log_type_t | log_type |
log type | |
char * | log_facility |
syslog facility (local0 - local7) | |
char * | log_ident |
log identifier | |
int | retry_init |
number of times to try connecting to the router at startup | |
int | retry_lost |
number of times to try reconnecting to the router if the connection drops | |
int | retry_sleep |
sleep interval between retries | |
int | retry_left |
number of tries left before failure | |
storage_t | st |
storage subsystem | |
mm_t | mm |
module subsystem | |
xht | acls |
access control lists (key is list name, value is jid_t list) | |
char | signature [2048] |
server signature | |
int | siglen |
length of signature | |
int | started |
true if we've connected to the router at least once | |
int | online |
true if we're currently bound in the router | |
xht | hosts |
vHosts map | |
int | query_rate_total |
Database query rate limits. | |
int | query_rate_seconds |
int | query_rate_wait |
xht | query_rates |
session manager global context
char* sm_st::id |
component id
Definition at line 168 of file sm.h.
Referenced by _sm_config_expand(), _sm_hosts_expand(), JABBER_MAIN(), sm_sx_callback(), sm_c2s_action(), _disco_pkt_router(), _session_in_router(), pkt_router(), and pkt_sess().
char* sm_st::router_ip |
ip to connect to the router at
Definition at line 170 of file sm.h.
Referenced by _sm_config_expand(), and _sm_router_connect().
port to connect to the router at
Definition at line 171 of file sm.h.
Referenced by _sm_config_expand(), and _sm_router_connect().
char* sm_st::router_user |
username to authenticate to the router as
Definition at line 172 of file sm.h.
Referenced by _sm_config_expand(), and sm_sx_callback().
char* sm_st::router_pass |
password to authenticate to the router with
Definition at line 173 of file sm.h.
Referenced by _sm_config_expand(), and sm_sx_callback().
char* sm_st::router_pemfile |
name of file containing a SSL certificate & key for channel to the router
Definition at line 174 of file sm.h.
Referenced by _sm_config_expand(), and JABBER_MAIN().
mio context
Definition at line 177 of file sm.h.
Referenced by _sm_router_connect(), JABBER_MAIN(), and sm_sx_callback().
SX SASL plugin.
Definition at line 180 of file sm.h.
Referenced by JABBER_MAIN(), and sm_sx_callback().
SX SSL plugin.
Definition at line 181 of file sm.h.
Referenced by JABBER_MAIN(), and sm_sx_callback().
SX of router connection.
Definition at line 183 of file sm.h.
Referenced by JABBER_MAIN(), sm_sx_callback(), sm_mio_callback(), sm_c2s_action(), _session_in_router(), pkt_router(), and sess_route().
file descriptor of router connection
Definition at line 184 of file sm.h.
Referenced by _sm_router_connect(), JABBER_MAIN(), and sm_sx_callback().
pointers to currently loaded users (key is user@domain)
Definition at line 186 of file sm.h.
Referenced by JABBER_MAIN(), sm_storage_rate_limit(), user_load(), user_free(), _announce_pkt_sm(), and _presence_in_router().
pointers to all connected sessions (key is random sm id)
Definition at line 188 of file sm.h.
Referenced by JABBER_MAIN(), _disco_sessions_result(), _session_in_router(), _session_pkt_router(), _sess_end_guts(), and sess_start().
index of namespaces (for iq sub-namespace in pkt_t)
Definition at line 190 of file sm.h.
Referenced by JABBER_MAIN(), sm_register_ns(), sm_unregister_ns(), sm_get_ns(), and pkt_new().
ref-counting for modules namespaces
Definition at line 191 of file sm.h.
Referenced by JABBER_MAIN(), sm_register_ns(), and sm_unregister_ns().
feature index (key is feature string
Definition at line 193 of file sm.h.
Referenced by JABBER_MAIN(), feature_register(), feature_unregister(), and _disco_info_result().
config context
Definition at line 195 of file sm.h.
Referenced by _sm_signal_hup(), _sm_pidfile(), _sm_config_expand(), _sm_hosts_expand(), JABBER_MAIN(), aci_load(), mm_new(), module_init(), _help_disco_extend(), and sess_start().
log context
Definition at line 197 of file sm.h.
Referenced by _sm_signal_hup(), _sm_pidfile(), _sm_hosts_expand(), _sm_router_connect(), JABBER_MAIN(), sm_sx_callback(), sm_mio_callback(), sm_storage_rate_limit(), user_create(), user_delete(), mm_new(), _help_pkt_sm(), _roster_publish_user_load(), _template_roster_reload(), pkt_new(), sess_end(), and sess_start().
char* sm_st::log_facility |
syslog facility (local0 - local7)
Definition at line 200 of file sm.h.
Referenced by _sm_config_expand(), and JABBER_MAIN().
char* sm_st::log_ident |
log identifier
Definition at line 201 of file sm.h.
Referenced by _sm_config_expand(), and JABBER_MAIN().
number of times to try connecting to the router at startup
Definition at line 203 of file sm.h.
Referenced by _sm_config_expand(), and JABBER_MAIN().
number of times to try reconnecting to the router if the connection drops
Definition at line 204 of file sm.h.
Referenced by _sm_config_expand(), and sm_sx_callback().
sleep interval between retries
Definition at line 205 of file sm.h.
Referenced by _sm_config_expand(), and JABBER_MAIN().
number of tries left before failure
Definition at line 206 of file sm.h.
Referenced by JABBER_MAIN(), and sm_sx_callback().
storage_t sm_st::st |
storage subsystem
Definition at line 208 of file sm.h.
Referenced by JABBER_MAIN(), _active_user_load(), _active_user_create(), _active_user_delete(), _announce_load(), _announce_in_sess(), _announce_broadcast_user(), _announce_pkt_sm(), _announce_user_delete(), _iq_last_pkt_user(), _iq_last_sess_end(), _iq_last_user_delete(), _iq_private_in_sess(), _iq_private_user_delete(), _iq_vcard_in_sess(), _iq_vcard_pkt_sm(), _iq_vcard_pkt_user(), _iq_vcard_user_delete(), _offline_in_sess(), _offline_pkt_user(), _offline_user_delete(), _privacy_user_load(), _privacy_in_sess(), _privacy_user_delete(), _roster_save_item(), _roster_in_sess_s10n(), _roster_set_item(), _roster_user_load(), _roster_user_delete(), _roster_publish_get_group_name(), _roster_publish_save_item(), _roster_publish_user_load(), _status_sess_start(), _status_sess_end(), _status_in_sess(), _status_pkt_sm(), _status_user_delete(), _template_roster_save_item(), _vacation_in_sess(), _vacation_user_load(), _vacation_user_delete(), and pres_in().
module subsystem
Definition at line 210 of file sm.h.
Referenced by _sm_signal_hup(), JABBER_MAIN(), _user_alloc(), user_load(), user_create(), user_delete(), dispatch(), _session_in_router(), pkt_router(), pkt_sess(), _sess_end_guts(), sess_end(), and sess_start().
access control lists (key is list name, value is jid_t list)
Definition at line 212 of file sm.h.
Referenced by JABBER_MAIN(), _announce_pkt_sm(), _disco_pkt_sm(), and _help_pkt_sm().
char sm_st::signature[2048] |
server signature
Definition at line 214 of file sm.h.
Referenced by JABBER_MAIN(), sm_signature(), and module_init().
int sm_st::siglen |
int sm_st::started |
true if we've connected to the router at least once
Definition at line 217 of file sm.h.
Referenced by sm_sx_callback().
int sm_st::online |
true if we're currently bound in the router
Definition at line 219 of file sm.h.
Referenced by sm_sx_callback(), and sm_mio_callback().
vHosts map
Definition at line 221 of file sm.h.
Referenced by _sm_hosts_expand(), JABBER_MAIN(), sm_sx_callback(), user_create(), _disco_pkt_sm(), and sess_start().
Database query rate limits.
Definition at line 224 of file sm.h.
Referenced by _sm_config_expand(), and sm_storage_rate_limit().
Definition at line 225 of file sm.h.
Referenced by _sm_config_expand(), and sm_storage_rate_limit().
Definition at line 226 of file sm.h.
Referenced by _sm_config_expand(), and sm_storage_rate_limit().
Definition at line 227 of file sm.h.
Referenced by JABBER_MAIN(), and sm_storage_rate_limit().