jabberd2  2.3.2
Functions | Variables
main.c File Reference
#include "c2s.h"
#include <stringprep.h>

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)
 
 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
 

Function Documentation

static void _c2s_signal ( int  signum)
static

Definition at line 30 of file main.c.

References c2s_lost_router, and c2s_shutdown.

Referenced by JABBER_MAIN().

static void _c2s_signal_hup ( int  signum)
static

Definition at line 36 of file main.c.

References c2s_logrotate, and c2s_sighup.

Referenced by JABBER_MAIN().

static void _c2s_signal_usr1 ( int  signum)
static

Definition at line 42 of file main.c.

References set_debug_flag().

Referenced by JABBER_MAIN().

static void _c2s_signal_usr2 ( int  signum)
static

Definition at line 47 of file main.c.

References set_debug_flag().

Referenced by JABBER_MAIN().

static void _c2s_pidfile ( c2s_t  c2s)
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 void _c2s_config_expand ( c2s_t  c2s)
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_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_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, xhash_pool(), and xhash_put().

Referenced by JABBER_MAIN().

static void _c2s_hosts_expand ( c2s_t  c2s)
static
static int _c2s_router_connect ( c2s_t  c2s)
static
static int _c2s_sx_sasl_callback ( int  cb,
void *  arg,
void **  res,
sx_t  s,
void *  cbarg 
)
static
static void _c2s_time_checks ( c2s_t  c2s)
static
JABBER_MAIN ( "jabberd2c2s"  ,
"Jabber 2 C2S"  ,
"Jabber Open Source Server: Client to Server"  ,
"jabberd2router\0"   
)

Definition at line 608 of file main.c.

References _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, config_elem_st::attrs, authreg_free(), 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::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_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_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(), stream_redirect_st::to_address, stream_redirect_st::to_port, xhashv::val, xhash_free(), xhash_iter_first(), xhash_iter_get(), xhash_iter_next(), xhash_new(), xhash_pool(), xhash_put(), and ZONE.

Variable Documentation

sig_atomic_t c2s_shutdown = 0
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().

sig_atomic_t c2s_logrotate = 0
static

Definition at line 27 of file main.c.

Referenced by _c2s_signal_hup(), and JABBER_MAIN().

sig_atomic_t c2s_sighup = 0
static

Definition at line 28 of file main.c.

Referenced by _c2s_signal_hup(), and JABBER_MAIN().