jabberd2  2.2.17
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
static void _c2s_config_expand (c2s_t c2s)
 pull values out of the config file
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
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 598 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, 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_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_pemfile, 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_address_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().