jabberd2
2.3.6
|
Go to the source code of this file.
Functions | |
static void | _c2s_signal (int signum) |
static void | _c2s_signal_hup (int signum) |
static void | _c2s_signal_usr1 (int signum) |
static void | _c2s_signal_usr2 (int signum) |
static void | _c2s_pidfile (c2s_t c2s) |
store the process id More... | |
static void | _c2s_config_expand (c2s_t c2s) |
pull values out of the config file More... | |
static void | _c2s_hosts_expand (c2s_t c2s) |
static int | _c2s_router_connect (c2s_t c2s) |
static int | _c2s_sx_sasl_callback (int cb, void *arg, void **res, sx_t s, void *cbarg) |
static void | _c2s_time_checks (c2s_t c2s) |
static void | _c2s_ar_free (const char *module, int modulelen, void *val, void *arg) |
JABBER_MAIN ("jabberd2c2s","Jabber 2 C2S","Jabber Open Source Server: Client to Server","jabberd2router\0") | |
Variables | |
static sig_atomic_t | c2s_shutdown = 0 |
sig_atomic_t | c2s_lost_router = 0 |
static sig_atomic_t | c2s_logrotate = 0 |
static sig_atomic_t | c2s_sighup = 0 |
|
static |
Definition at line 30 of file main.c.
References c2s_lost_router, and c2s_shutdown.
Referenced by JABBER_MAIN().
|
static |
Definition at line 36 of file main.c.
References c2s_logrotate, and c2s_sighup.
Referenced by JABBER_MAIN().
|
static |
|
static |
|
static |
store the process id
Definition at line 53 of file main.c.
References c2s_st::config, config_get_one(), c2s_st::log, and log_write().
Referenced by JABBER_MAIN().
|
static |
pull values out of the config file
Definition at line 80 of file main.c.
References c2s_st::access, access_allow(), access_deny(), access_new(), AR_MECH_TRAD_CRAMMD5, AR_MECH_TRAD_DIGEST, AR_MECH_TRAD_PLAIN, c2s_st::ar_mechanisms, c2s_st::ar_module_name, c2s_st::ar_ssl_mechanisms, config_elem_st::attrs, c2s_st::byte_rate_seconds, c2s_st::byte_rate_total, c2s_st::byte_rate_wait, c2s_st::compression, c2s_st::config, config_get(), config_get_attr(), config_get_one(), c2s_st::conn_rate_seconds, c2s_st::conn_rate_total, c2s_st::conn_rate_wait, c2s_st::http_forward, c2s_st::id, c2s_st::io_check_idle, c2s_st::io_check_interval, c2s_st::io_check_keepalive, c2s_st::io_max_fds, j_atoi(), j_attr(), c2s_st::local_cachain, c2s_st::local_ciphers, c2s_st::local_ip, c2s_st::local_pemfile, c2s_st::local_port, c2s_st::local_private_key_password, c2s_st::local_ssl_port, c2s_st::local_verify_mode, c2s_st::log, c2s_st::log_facility, log_FILE, c2s_st::log_ident, log_STDOUT, log_SYSLOG, c2s_st::log_type, log_write(), config_elem_st::nvalues, c2s_st::packet_stats, c2s_st::pbx_pipe, pmalloco(), pstrdup(), c2s_st::retry_init, c2s_st::retry_lost, c2s_st::retry_sleep, c2s_st::router_cachain, c2s_st::router_ciphers, c2s_st::router_ip, c2s_st::router_pass, c2s_st::router_pemfile, c2s_st::router_port, c2s_st::router_private_key_password, c2s_st::router_user, set_debug_log_from_config(), c2s_st::stanza_rate_seconds, c2s_st::stanza_rate_total, c2s_st::stanza_rate_wait, c2s_st::stanza_size_limit, c2s_st::stream_redirects, stream_redirect_st::to_address, stream_redirect_st::to_port, config_elem_st::values, c2s_st::websocket, xhash_pool(), and xhash_put().
Referenced by JABBER_MAIN().
|
static |
Definition at line 295 of file main.c.
References host_st::ar, c2s_st::ar, host_st::ar_module_name, c2s_st::ar_module_name, host_st::ar_register_enable, host_st::ar_register_instructions, host_st::ar_register_oob, host_st::ar_register_password, config_elem_st::attrs, authreg_init(), c2s_st::config, config_get(), host_st::host_cachain, host_st::host_ciphers, host_st::host_pemfile, host_st::host_private_key_password, host_st::host_require_starttls, host_st::host_verify_mode, c2s_st::hosts, j_atoi(), j_attr(), c2s_st::log, log_write(), config_elem_st::nvalues, pmalloco(), pstrdup(), host_st::realm, c2s_st::sx_env, sx_env_plugin(), c2s_st::sx_ssl, sx_ssl_init(), sx_ssl_server_addcert(), config_elem_st::values, c2s_st::vhost, xhash_pool(), and xhash_put().
Referenced by JABBER_MAIN().
|
static |
Definition at line 401 of file main.c.
References c2s_lost_router, c2s_router_mio_callback(), c2s_router_sx_callback(), mio_fd_st::fd, c2s_st::fd, c2s_st::log, log_write(), c2s_st::mio, mio_connect, MIO_ERROR, MIO_STRERROR, c2s_st::router, c2s_st::router_ip, c2s_st::router_port, sx_client_init(), c2s_st::sx_env, and sx_new().
Referenced by JABBER_MAIN().
|
static |
Definition at line 418 of file main.c.
References host_st::ar, sx_sasl_creds_st::authnid, sx_sasl_creds_st::authzid, authreg_st::check_password, c2s_st::config, config_get(), jid_st::domain, authreg_st::get_password, sess_st::host, c2s_st::hosts, jid_NODE, jid_random_part(), jid_reset(), jid_static(), c2s_st::log, log_debug, log_write(), jid_st::node, sx_sasl_creds_st::pass, host_st::realm, sx_sasl_creds_st::realm, _sx_st::req_to, jid_st::resource, c2s_st::sessions, _sx_st::ssf, sx_sasl_cb_CHECK_AUTHZID, sx_sasl_cb_CHECK_MECH, sx_sasl_cb_CHECK_PASS, sx_sasl_cb_GEN_AUTHZID, sx_sasl_cb_GET_PASS, sx_sasl_cb_GET_REALM, sx_sasl_ret_FAIL, sx_sasl_ret_OK, _sx_st::tag, authreg_st::user_authz_allowed, authreg_st::user_exists, xhash_get(), and ZONE.
Referenced by JABBER_MAIN().
|
static |
Definition at line 612 of file main.c.
References rate_st::bad, sess_st::fd, mio_fd_st::fd, c2s_st::io_check_idle, c2s_st::io_check_keepalive, sess_st::ip, sess_st::last_activity, c2s_st::log, log_debug, log_write(), sess_st::port, sess_st::rate, rate_check(), sess_st::s, xhashv::sess_val, c2s_st::sessions, _sx_st::state, state_STREAM, stream_err_HOST_GONE, sx_can_read(), sx_close(), sx_error(), sx_raw_write(), xhashv::val, _sx_st::want_read, xhash_iter_first(), xhash_iter_get(), xhash_iter_next(), and ZONE.
Referenced by JABBER_MAIN().
|
static |
JABBER_MAIN | ( | "jabberd2c2s" | , |
"Jabber 2 C2S" | , | ||
"Jabber Open Source Server: Client to Server" | , | ||
"jabberd2router\0" | |||
) |
Definition at line 654 of file main.c.
References _c2s_ar_free(), _c2s_config_expand(), _c2s_hosts_expand(), _c2s_pidfile(), _c2s_router_connect(), _c2s_signal(), _c2s_signal_hup(), _c2s_signal_usr1(), _c2s_signal_usr2(), _c2s_sx_sasl_callback(), _c2s_time_checks(), c2s_st::access, access_free(), sess_st::active, address_init(), c2s_st::ar, c2s_st::ar_module_name, c2s_st::ar_modules, config_elem_st::attrs, authreg_init(), bind_init(), c2s_logrotate, c2s_lost_router, c2s_shutdown, c2s_sighup, c2s_st::compression, c2s_st::config, config_file, config_free(), config_get(), config_load(), config_load_with_id(), config_new(), c2s_st::conn_rates, c2s_st::dead, c2s_st::dead_sess, c2s_st::fd, c2s_st::hosts, c2s_st::http_forward, c2s_st::io_check_interval, c2s_st::io_max_fds, sess_st::ip, j_attr(), jabber_signal(), bres_st::jid, jid_free(), jqueue_free(), jqueue_new(), jqueue_pull(), jqueue_size(), c2s_st::local_cachain, c2s_st::local_ciphers, c2s_st::local_pemfile, c2s_st::local_private_key_password, c2s_st::local_verify_mode, c2s_st::log, log_debug, c2s_st::log_facility, log_free(), c2s_st::log_ident, log_new(), c2s_st::log_type, log_write(), c2s_st::mio, mio_close, mio_free, mio_new(), mio_run, nad_free(), bres_st::next, c2s_st::next_check, config_elem_st::nvalues, c2s_st::packet_count, c2s_st::packet_stats, pmalloco(), pool_stat(), pstrdup(), sess_st::rate, rate_free(), sess_st::resources, sess_st::result, c2s_st::retry_init, c2s_st::retry_left, c2s_st::retry_sleep, c2s_st::router, c2s_st::router_cachain, c2s_st::router_ciphers, c2s_st::router_pemfile, c2s_st::router_private_key_password, sess_st::s, xhashv::sess_val, c2s_st::sessions, set_debug_flag(), set_debug_log_from_config(), c2s_st::sm_avail, sess_st::smcomp, sess_st::stanza_rate, c2s_st::stream_redirects, sx_ack_init(), sx_close(), sx_compress_init(), c2s_st::sx_env, sx_env_free(), sx_env_new(), sx_env_plugin(), sx_free(), c2s_st::sx_sasl, sx_sasl_init(), c2s_st::sx_ssl, sx_ssl_init(), sx_websocket_init(), stream_redirect_st::to_address, stream_redirect_st::to_port, xhashv::val, c2s_st::websocket, xhash_free(), xhash_iter_first(), xhash_iter_get(), xhash_iter_next(), xhash_new(), xhash_pool(), xhash_put(), xhash_walk(), and ZONE.
|
static |
Definition at line 25 of file main.c.
Referenced by _c2s_signal(), and JABBER_MAIN().
sig_atomic_t c2s_lost_router = 0 |
Definition at line 26 of file main.c.
Referenced by _c2s_router_connect(), _c2s_signal(), c2s_router_mio_callback(), and JABBER_MAIN().
|
static |
Definition at line 27 of file main.c.
Referenced by _c2s_signal_hup(), and JABBER_MAIN().
|
static |
Definition at line 28 of file main.c.
Referenced by _c2s_signal_hup(), and JABBER_MAIN().