jabberd2  2.5.0
Functions | Variables
main.c File Reference
#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
 

Function Documentation

static void router_signal ( int  signum)
static

Definition at line 26 of file main.c.

References router_shutdown.

Referenced by JABBER_MAIN().

static void router_signal_hup ( int  signum)
static

Definition at line 31 of file main.c.

References router_logrotate.

Referenced by JABBER_MAIN().

static void router_signal_usr1 ( int  signum)
static

Definition at line 36 of file main.c.

References set_debug_flag().

Referenced by JABBER_MAIN().

static void router_signal_usr2 ( int  signum)
static

Definition at line 41 of file main.c.

References set_debug_flag().

Referenced by JABBER_MAIN().

static void _router_pidfile ( router_t  r)
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 void _router_config_expand ( router_t  r)
static
static int _router_sx_sasl_callback ( int  cb,
void *  arg,
void **  res,
sx_t  s,
void *  cbarg 
)
static
static void _router_time_checks ( router_t  r)
static
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.

Variable Documentation

sig_atomic_t router_shutdown = 0
static

Definition at line 23 of file main.c.

Referenced by JABBER_MAIN(), and router_signal().

sig_atomic_t router_logrotate = 0
static

Definition at line 24 of file main.c.

Referenced by JABBER_MAIN(), and router_signal_hup().