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