jabberd2
2.2.17
|
initialisation More...
Go to the source code of this file.
Functions | |
static void | _sm_signal (int signum) |
static void | _sm_signal_hup (int signum) |
static void | _sm_signal_usr1 (int signum) |
static void | _sm_signal_usr2 (int signum) |
static void | _sm_pidfile (sm_t sm) |
store the process id | |
static void | _sm_config_expand (sm_t sm) |
pull values out of the config file | |
static void | _sm_hosts_expand (sm_t sm) |
static int | _sm_router_connect (sm_t sm) |
JABBER_MAIN ("jabberd2sm","Jabber 2 Session Manager","Jabber Open Source Server: Session Manager","jabberd2router\0") |
Variables | |
static sig_atomic_t | sm_shutdown = 0 |
static sig_atomic_t | sm_logrotate = 0 |
static sm_t | sm = NULL |
static char * | config_file |
|
static |
Definition at line 36 of file main.c.
References sm_lost_router, and sm_shutdown.
Referenced by JABBER_MAIN().
|
static |
Definition at line 42 of file main.c.
References sm_st::config, config_file, config_free(), config_load(), config_new(), sm_st::log, log_write(), sm_st::mm, mm_free(), mm_new(), and sm_logrotate.
Referenced by JABBER_MAIN().
|
static |
|
static |
|
static |
store the process id
Definition at line 75 of file main.c.
References sm_st::config, config_get_one(), sm_st::log, and log_write().
Referenced by JABBER_MAIN().
|
static |
pull values out of the config file
Definition at line 103 of file main.c.
References config_elem_st::attrs, sm_st::config, config_get(), config_get_attr(), config_get_one(), sm_st::id, j_atoi(), j_attr(), sm_st::log_facility, log_FILE, sm_st::log_ident, log_STDOUT, log_SYSLOG, sm_st::log_type, sm_st::query_rate_seconds, sm_st::query_rate_total, sm_st::query_rate_wait, sm_st::retry_init, sm_st::retry_lost, sm_st::retry_sleep, sm_st::router_ip, sm_st::router_pass, sm_st::router_pemfile, sm_st::router_port, sm_st::router_user, set_debug_log_from_config(), and config_elem_st::values.
Referenced by JABBER_MAIN().
|
static |
Definition at line 164 of file main.c.
References sm_st::config, config_get(), sm_st::hosts, sm_st::id, sm_st::log, log_write(), config_elem_st::nvalues, pstrdup(), config_elem_st::values, xhash_pool(), and xhash_put().
Referenced by JABBER_MAIN().
|
static |
Definition at line 194 of file main.c.
References mio_fd_st::fd, sm_st::fd, sm_st::log, log_write(), sm_st::mio, mio_connect, MIO_ERROR, MIO_STRERROR, sm_st::router, sm_st::router_ip, sm_st::router_port, sm_lost_router, sm_mio_callback(), sm_sx_callback(), sx_client_init(), sm_st::sx_env, and sx_new().
Referenced by JABBER_MAIN().
JABBER_MAIN | ( | "jabberd2sm" | , |
"Jabber 2 Session Manager" | , | ||
"Jabber Open Source Server: Session Manager" | , | ||
"jabberd2router\0" | |||
) |
Definition at line 211 of file main.c.
References _sm_config_expand(), _sm_hosts_expand(), _sm_pidfile(), _sm_router_connect(), _sm_signal(), _sm_signal_hup(), _sm_signal_usr1(), _sm_signal_usr2(), aci_load(), aci_unload(), sm_st::acls, sm_st::config, config_file, config_free(), config_load_with_id(), config_new(), sm_st::fd, feature_register(), sm_st::features, sm_st::hosts, sm_st::id, jabber_signal(), sm_st::log, sm_st::log_facility, log_free(), sm_st::log_ident, log_new(), sm_st::log_type, log_write(), sm_st::mio, mio_close, mio_free, MIO_MAXFD, mio_new(), mio_run, sm_st::mm, mm_free(), mm_new(), ns_AGENTS, ns_AUTH, ns_BROWSE, ns_DELAY, ns_DISCO, ns_DISCO_INFO, ns_DISCO_ITEMS, ns_EVENT, ns_EXPIRE, ns_GATEWAY, ns_REGISTER, ns_ROSTER, ns_SEARCH, pool_stat(), sm_st::query_rates, sm_st::retry_init, sm_st::retry_left, sm_st::retry_sleep, sm_st::router, sm_st::router_pemfile, sess_end(), sm_st::sessions, set_debug_flag(), set_debug_log_from_config(), sm_st::signature, sm_c2s_action(), sm_logrotate, sm_lost_router, sm_shutdown, sm_signature(), sm_st::st, sm_st::sx_env, sx_env_free(), sx_env_new(), sx_env_plugin(), sx_free(), sm_st::sx_sasl, sx_sasl_init(), sm_st::sx_ssl, sx_ssl_init(), uri_AGENTS, uri_AUTH, uri_BROWSE, uri_DELAY, uri_DISCO, uri_DISCO_INFO, uri_DISCO_ITEMS, uri_EVENT, uri_EXPIRE, uri_GATEWAY, uri_REGISTER, uri_ROSTER, uri_SEARCH, sm_st::users, xhash_free(), xhash_iter_first(), xhash_iter_get(), xhash_iter_next(), xhash_new(), xhash_put(), sm_st::xmlns, and sm_st::xmlns_refcount.
|
static |
Definition at line 31 of file main.c.
Referenced by _sm_signal(), and JABBER_MAIN().
|
static |
Definition at line 32 of file main.c.
Referenced by _sm_signal_hup(), and JABBER_MAIN().
|
static |
Definition at line 33 of file main.c.
Referenced by _session_in_router(), _user_alloc(), mm_new(), pkt_new(), sm_mio_callback(), and sm_sx_callback().
|
static |
Definition at line 34 of file main.c.
Referenced by _sm_signal_hup(), and JABBER_MAIN().