jabberd2  2.6.1
Data Fields
sm_st Struct Reference

session manager global context More...

#include <sm.h>

Data Fields

const char * id
 component id More...
 
const char * router_ip
 ip to connect to the router at More...
 
int router_port
 port to connect to the router at More...
 
const char * router_user
 username to authenticate to the router as More...
 
const char * router_pass
 password to authenticate to the router with More...
 
const char * router_pemfile
 name of file containing a SSL certificate & key for channel to the router More...
 
const char * router_private_key_password
 
const char * router_ciphers
 password for private key if pemfile key is encrypted More...
 
mio_t mio
 TLS ciphers. More...
 
sx_env_t sx_env
 SX environment. More...
 
sx_plugin_t sx_sasl
 SX SASL plugin. More...
 
sx_plugin_t sx_ssl
 SX SSL plugin. More...
 
sx_t router
 SX of router connection. More...
 
mio_fd_t fd
 file descriptor of router connection More...
 
xht users
 pointers to currently loaded users (key is user@domain) More...
 
xht sessions
 pointers to all connected sessions (key is random sm id) More...
 
xht xmlns
 index of namespaces (for iq sub-namespace in pkt_t) More...
 
xht xmlns_refcount
 ref-counting for modules namespaces More...
 
xht features
 feature index (key is feature string More...
 
config_t config
 config context More...
 
log_t log
 log context More...
 
log_type_t log_type
 log type More...
 
const char * log_facility
 syslog facility (local0 - local7) More...
 
const char * log_ident
 log identifier More...
 
int retry_init
 number of times to try connecting to the router at startup More...
 
int retry_lost
 number of times to try reconnecting to the router if the connection drops More...
 
int retry_sleep
 sleep interval between retries More...
 
int retry_left
 number of tries left before failure More...
 
storage_t st
 storage subsystem More...
 
mm_t mm
 module subsystem More...
 
xht acls
 access control lists (key is list name, value is jid_t list) More...
 
char signature [2048]
 server signature More...
 
int siglen
 length of signature More...
 
int started
 true if we've connected to the router at least once More...
 
int online
 true if we're currently bound in the router More...
 
xht hosts
 vHosts map More...
 
int query_rate_total
 Database query rate limits. More...
 
int query_rate_seconds
 
int query_rate_wait
 
xht query_rates
 

Detailed Description

session manager global context

Definition at line 167 of file sm.h.

Field Documentation

◆ id

const char* sm_st::id

◆ router_ip

const 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().

◆ router_port

int sm_st::router_port

port to connect to the router at

Definition at line 171 of file sm.h.

Referenced by _sm_config_expand(), and _sm_router_connect().

◆ router_user

const 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().

◆ router_pass

const 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().

◆ router_pemfile

const 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().

◆ router_private_key_password

const char* sm_st::router_private_key_password

Definition at line 176 of file sm.h.

Referenced by _sm_config_expand(), and JABBER_MAIN().

◆ router_ciphers

const char* sm_st::router_ciphers

password for private key if pemfile key is encrypted

Definition at line 178 of file sm.h.

Referenced by _sm_config_expand(), and JABBER_MAIN().

◆ mio

mio_t sm_st::mio

TLS ciphers.

mio context

Definition at line 180 of file sm.h.

Referenced by _sm_router_connect(), JABBER_MAIN(), and sm_sx_callback().

◆ sx_env

sx_env_t sm_st::sx_env

SX environment.

Definition at line 182 of file sm.h.

Referenced by JABBER_MAIN().

◆ sx_sasl

sx_plugin_t sm_st::sx_sasl

SX SASL plugin.

Definition at line 183 of file sm.h.

Referenced by JABBER_MAIN(), and sm_sx_callback().

◆ sx_ssl

sx_plugin_t sm_st::sx_ssl

SX SSL plugin.

Definition at line 184 of file sm.h.

Referenced by JABBER_MAIN(), and sm_sx_callback().

◆ router

sx_t sm_st::router

SX of router connection.

Definition at line 186 of file sm.h.

Referenced by _session_in_router(), JABBER_MAIN(), pkt_router(), sess_route(), sm_c2s_action(), sm_mio_callback(), and sm_sx_callback().

◆ fd

mio_fd_t sm_st::fd

file descriptor of router connection

Definition at line 187 of file sm.h.

Referenced by _sm_router_connect(), JABBER_MAIN(), and sm_sx_callback().

◆ users

xht sm_st::users

pointers to currently loaded users (key is user@domain)

Definition at line 189 of file sm.h.

Referenced by _announce_pkt_sm(), _presence_in_router(), JABBER_MAIN(), sm_storage_rate_limit(), user_free(), and user_load().

◆ sessions

xht sm_st::sessions

pointers to all connected sessions (key is random sm id)

Definition at line 191 of file sm.h.

Referenced by _disco_sessions_result(), _sess_end_guts(), _session_in_router(), _session_pkt_router(), JABBER_MAIN(), and sess_start().

◆ xmlns

xht sm_st::xmlns

index of namespaces (for iq sub-namespace in pkt_t)

Definition at line 193 of file sm.h.

Referenced by JABBER_MAIN(), pkt_new(), sm_get_ns(), sm_register_ns(), and sm_unregister_ns().

◆ xmlns_refcount

xht sm_st::xmlns_refcount

ref-counting for modules namespaces

Definition at line 194 of file sm.h.

Referenced by JABBER_MAIN(), sm_register_ns(), and sm_unregister_ns().

◆ features

xht sm_st::features

feature index (key is feature string

Definition at line 196 of file sm.h.

Referenced by _disco_info_result(), feature_register(), feature_unregister(), and JABBER_MAIN().

◆ config

config_t sm_st::config

◆ log

log_t sm_st::log

◆ log_type

log_type_t sm_st::log_type

log type

Definition at line 202 of file sm.h.

Referenced by _sm_config_expand(), and JABBER_MAIN().

◆ log_facility

const char* sm_st::log_facility

syslog facility (local0 - local7)

Definition at line 203 of file sm.h.

Referenced by _sm_config_expand(), and JABBER_MAIN().

◆ log_ident

const char* sm_st::log_ident

log identifier

Definition at line 204 of file sm.h.

Referenced by _sm_config_expand(), and JABBER_MAIN().

◆ retry_init

int sm_st::retry_init

number of times to try connecting to the router at startup

Definition at line 206 of file sm.h.

Referenced by _sm_config_expand(), and JABBER_MAIN().

◆ retry_lost

int sm_st::retry_lost

number of times to try reconnecting to the router if the connection drops

Definition at line 207 of file sm.h.

Referenced by _sm_config_expand(), and sm_sx_callback().

◆ retry_sleep

int sm_st::retry_sleep

sleep interval between retries

Definition at line 208 of file sm.h.

Referenced by _sm_config_expand(), and JABBER_MAIN().

◆ retry_left

int sm_st::retry_left

number of tries left before failure

Definition at line 209 of file sm.h.

Referenced by JABBER_MAIN(), and sm_sx_callback().

◆ st

storage_t sm_st::st

◆ mm

mm_t sm_st::mm

◆ acls

xht sm_st::acls

access control lists (key is list name, value is jid_t list)

Definition at line 215 of file sm.h.

Referenced by _announce_pkt_sm(), _disco_pkt_sm(), _help_pkt_sm(), and JABBER_MAIN().

◆ signature

char sm_st::signature[2048]

server signature

Definition at line 217 of file sm.h.

Referenced by JABBER_MAIN(), module_init(), and sm_signature().

◆ siglen

int sm_st::siglen

length of signature

Definition at line 218 of file sm.h.

Referenced by sm_signature().

◆ started

int sm_st::started

true if we've connected to the router at least once

Definition at line 220 of file sm.h.

Referenced by sm_sx_callback().

◆ online

int sm_st::online

true if we're currently bound in the router

Definition at line 222 of file sm.h.

Referenced by sm_mio_callback(), and sm_sx_callback().

◆ hosts

xht sm_st::hosts

vHosts map

Definition at line 224 of file sm.h.

Referenced by _disco_pkt_sm(), _sm_hosts_expand(), JABBER_MAIN(), sess_start(), sm_sx_callback(), and user_create().

◆ query_rate_total

int sm_st::query_rate_total

Database query rate limits.

Definition at line 227 of file sm.h.

Referenced by _sm_config_expand(), and sm_storage_rate_limit().

◆ query_rate_seconds

int sm_st::query_rate_seconds

Definition at line 228 of file sm.h.

Referenced by _sm_config_expand(), and sm_storage_rate_limit().

◆ query_rate_wait

int sm_st::query_rate_wait

Definition at line 229 of file sm.h.

Referenced by _sm_config_expand(), and sm_storage_rate_limit().

◆ query_rates

xht sm_st::query_rates

Definition at line 230 of file sm.h.

Referenced by JABBER_MAIN(), and sm_storage_rate_limit().


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