jabberd2  2.2.16
Functions | Variables
c2s/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_shutdown, and c2s_lost_router.

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 config_get_one(), c2s_st::config, log_write(), and c2s_st::log.

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 config_file, jabber_signal(), _c2s_signal(), _c2s_signal_hup(), _c2s_signal_usr1(), _c2s_signal_usr2(), c2s_st::config, config_new(), set_debug_flag(), config_free(), config_load_with_id(), c2s_st::stream_redirects, xhash_new(), _c2s_config_expand(), c2s_st::log, log_new(), c2s_st::log_type, c2s_st::log_ident, c2s_st::log_facility, log_write(), _c2s_pidfile(), c2s_st::ar_module_name, c2s_st::ar, authreg_init(), access_free(), c2s_st::access, log_free(), c2s_st::sessions, c2s_st::conn_rates, c2s_st::dead, jqueue_new(), c2s_st::dead_sess, c2s_st::sx_env, sx_env_new(), c2s_st::local_pemfile, c2s_st::sx_ssl, sx_env_plugin(), sx_ssl_init(), c2s_st::local_cachain, c2s_st::local_verify_mode, c2s_st::router_pemfile, c2s_st::compression, sx_compress_init(), sx_ack_init(), sx_address_init(), c2s_st::sx_sasl, sx_sasl_init(), _c2s_sx_sasl_callback(), bind_init(), mio_new(), _c2s_hosts_expand(), _c2s_router_connect(), c2s_shutdown, mio_run, c2s_logrotate, set_debug_log_from_config(), c2s_sighup, config_load(), xhash_free(), config_get(), config_elem_st::nvalues, pmalloco(), xhash_pool(), j_attr(), config_elem_st::attrs, stream_redirect_st::to_address, stream_redirect_st::to_port, xhash_put(), pstrdup(), c2s_lost_router, sx_free(), jqueue_size(), jqueue_pull(), sess_st::ip, sess_st::smcomp, sess_st::result, nad_free(), sess_st::resources, bres_st::next, jid_free(), bres_st::jid, sess_st::rate, rate_free(), sess_st::stanza_rate, log_debug, ZONE, _c2s_time_checks(), pool_stat(), xhash_iter_first(), xhashv::sess_val, xhash_iter_get(), xhashv::val, sess_st::active, sess_st::s, sx_close(), xhash_iter_next(), mio_close, sx_env_free(), mio_free, authreg_free(), and jqueue_free().


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_mio_callback(), _c2s_signal(), _c2s_router_connect(), 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().