#include <sys/stat.h>#include <sys/types.h>#include <time.h>#include <iostream>#include <iomanip>#include <sstream>#include <stdlib.h>#include <errno.h>#include "gcrypt.h"#include "signal.h"#include "game.h"#include "user.h"#include "../general/log.h"#include "../general/communicate.h"#include "../general/misc.h"#include "../general/arguments.h"#include "../general/util.h"#include "central.h"Defines | |
| #define | DEBUG_ROUTINE "central" | 
| #define | arg_sig(t, a, s) | 
| Argument to program with handler routine.   | |
Functions | |
| void | sig_int (int i) | 
| Stop the server gracefully on a normal interrupt signal.   | |
| void | sig_reload (int i) | 
| Write data and reload configuration on a HUP signal.   | |
| int | main (int arg, char *arv[]) | 
| Main routine for the Central server.   | |
Variables | |
| bool | stop = false | 
| time_t | last_save = 0 | 
| communicate | tls_comm | 
| #define arg_sig | ( | t, | |||
| a, | |||||
| s | ) | 
Value:
{sigc::signal<void, std::string> s##_signal; \
    s##_signal.connect(sigc::mem_fun(central_data, ¢ral::s)); \
    arg_add(t, "", "", a, s##_signal);}
| #define DEBUG_ROUTINE "central" | 
| int main | ( | int | arg, | |
| char * | arv[] | |||
| ) | 
Main routine for the Central server.
| void sig_int | ( | int | i | ) | 
Stop the server gracefully on a normal interrupt signal.
| void sig_reload | ( | int | i | ) | 
| time_t last_save = 0 | 
| bool stop = false | 
Generated on Tue Jan 1 17:30:01 2008 for central/central.cc File Reference by  
  
Visit the project page on