jabberd2
2.2.16
|
#include "router.h"
Go to the source code of this file.
Functions | |
static void | router_signal (int signum) |
static void | router_signal_hup (int signum) |
static void | router_signal_usr1 (int signum) |
static void | router_signal_usr2 (int signum) |
static void | _router_pidfile (router_t r) |
store the process id | |
static void | _router_config_expand (router_t r) |
pull values out of the config file | |
static int | _router_sx_sasl_callback (int cb, void *arg, void **res, sx_t s, void *cbarg) |
static void | _router_time_checks (router_t r) |
JABBER_MAIN ("jabberd2router","Jabber 2 Router","Jabber Open Source Server: Router", NULL) | |
Variables | |
static sig_atomic_t | router_shutdown = 0 |
static sig_atomic_t | router_logrotate = 0 |
static void router_signal | ( | int | signum | ) | [static] |
static void router_signal_hup | ( | int | signum | ) | [static] |
static void router_signal_usr1 | ( | int | signum | ) | [static] |
static void router_signal_usr2 | ( | int | signum | ) | [static] |
static void _router_pidfile | ( | router_t | r | ) | [static] |
store the process id
Definition at line 47 of file main.c.
References config_get_one(), router_st::config, log_write(), and router_st::log.
Referenced by JABBER_MAIN().
static void _router_config_expand | ( | router_t | r | ) | [static] |
pull values out of the config file
Definition at line 75 of file main.c.
References router_st::id, config_get_one(), router_st::config, set_debug_log_from_config(), router_st::log_type, log_STDOUT, config_get(), config_get_attr(), log_FILE, log_SYSLOG, router_st::log_facility, router_st::log_ident, router_st::local_ip, router_st::local_port, j_atoi(), router_st::local_secret, router_st::local_pemfile, router_st::io_max_fds, router_st::byte_rate_total, config_elem_st::values, router_st::byte_rate_seconds, j_attr(), config_elem_st::attrs, router_st::byte_rate_wait, router_st::conn_rate_total, router_st::conn_rate_seconds, router_st::conn_rate_wait, router_st::access, access_new(), config_elem_st::nvalues, access_allow(), access_deny(), alias_st::name, alias_st::target, alias_st::next, router_st::aliases, router_st::message_logging_enabled, router_st::message_logging_file, router_st::check_interval, and router_st::check_keepalive.
Referenced by JABBER_MAIN().
static int _router_sx_sasl_callback | ( | int | cb, |
void * | arg, | ||
void ** | res, | ||
sx_t | s, | ||
void * | cbarg | ||
) | [static] |
Definition at line 209 of file main.c.
References sx_sasl_cb_GET_REALM, sx_sasl_ret_OK, sx_sasl_cb_GET_PASS, log_debug, ZONE, sx_sasl_creds_st::authnid, sx_sasl_creds_st::realm, xhash_get(), router_st::users, sx_sasl_ret_FAIL, sx_sasl_cb_CHECK_PASS, sx_sasl_creds_st::pass, sx_sasl_cb_CHECK_AUTHZID, sx_sasl_creds_st::authzid, and sx_sasl_cb_CHECK_MECH.
Referenced by JABBER_MAIN().
static void _router_time_checks | ( | router_t | r | ) | [static] |
Definition at line 271 of file main.c.
References xhash_iter_first(), router_st::components, xhashv::comp_val, xhash_iter_get(), xhashv::val, router_st::check_keepalive, component_st::last_activity, component_st::s, _sx_st::state, state_STREAM, log_debug, ZONE, component_st::fd, mio_fd_st::fd, sx_raw_write(), and xhash_iter_next().
Referenced by JABBER_MAIN().
JABBER_MAIN | ( | "jabberd2router" | , |
"Jabber 2 Router" | , | ||
"Jabber Open Source Server: Router" | , | ||
NULL | |||
) |
Definition at line 293 of file main.c.
References config_file, jabber_signal(), router_signal(), router_signal_hup(), router_signal_usr1(), router_signal_usr2(), router_st::config, config_new(), set_debug_flag(), config_free(), config_load_with_id(), _router_config_expand(), router_st::log, log_new(), router_st::log_type, router_st::log_ident, router_st::log_facility, log_write(), _router_pidfile(), user_table_load(), router_st::aci, aci_load(), filter_load(), router_st::conn_rates, xhash_new(), router_st::components, router_st::routes, router_st::log_sinks, router_st::dead, jqueue_new(), router_st::closefd, router_st::deadroutes, router_st::sx_env, sx_env_new(), router_st::local_pemfile, router_st::sx_ssl, sx_env_plugin(), sx_ssl_init(), router_st::sx_sasl, sx_sasl_init(), _router_sx_sasl_callback(), mio_new(), mio_listen, router_mio_callback(), MIO_STRERROR, MIO_ERROR, router_shutdown, mio_run, router_logrotate, set_debug_log_from_config(), log_free(), filter_unload(), user_table_unload(), jqueue_size(), sx_free(), jqueue_pull(), mio_close, routes_free(), log_debug, ZONE, _router_time_checks(), pool_stat(), mio_app, xhashv::comp_val, xhash_iter_first(), xhash_iter_get(), xhashv::val, sx_close(), component_st::s, xhash_iter_next(), xhash_free(), jqueue_free(), xhashv::rt_val, rate_free(), aci_unload(), sx_env_free(), mio_free, and access_free().
sig_atomic_t router_shutdown = 0 [static] |
Definition at line 23 of file main.c.
Referenced by router_signal(), and JABBER_MAIN().
sig_atomic_t router_logrotate = 0 [static] |
Definition at line 24 of file main.c.
Referenced by router_signal_hup(), and JABBER_MAIN().