central/central.cc File Reference

#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 Documentation

#define arg_sig ( t,
a,
 ) 

Value:

{sigc::signal<void, std::string> s##_signal; \
    s##_signal.connect(sigc::mem_fun(central_data, &central::s)); \
    arg_add(t, "", "", a, s##_signal);}
Argument to program with handler routine.

#define DEBUG_ROUTINE   "central"


Function Documentation

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  ) 

Write data and reload configuration on a HUP signal.

Todo:
Also write game data to file
Todo:
Start a new logfile


Variable Documentation

time_t last_save = 0

bool stop = false

communicate tls_comm



Generated on Tue Jan 1 17:30:01 2008 for central/central.cc File Reference by  doxygen   Visit the project page on SourceForge.net Logo