fgms 0.11.8
The
FlightGear MultiPlayer Server
project
fg_server.cxx File Reference
#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include <string.h>
#include <endian.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <netinet/in.h>
#include <string>
#include "fg_cli.hxx"
#include "fg_server.hxx"
#include "fg_common.hxx"
#include "fg_util.hxx"

Go to the source code of this file.

Macros

#define DEF_EXIT_FILE   "fgms_exit"
 
#define DEF_RESET_FILE   "fgms_reset"
 
#define DEF_SERVER_LOG   "fg_server.log"
 
#define DEF_STAT_FILE   "fgms_stat"
 
#define DEF_UPDATE_SECS   10
 
#define FGMS_USE_THREADS
 

Functions

void * admin_helper (void *context)
 
void * detach_tracker (void *vp)
 
void SigHUPHandler (int SigType)
 If we receive a SIGHUP, reinit application. More...
 
static void * telnet_helper (void *context)
 

Variables

bool AddCLI = true
 
static char * exit_file = ( char* ) "/tmp/" DEF_EXIT_FILE
 
cDaemon Myself
 An instance of cDaemon. More...
 
static char * reset_file = ( char* ) "/tmp/" DEF_RESET_FILE
 
bool RunAsDaemon = false
 Flag whether instance is a Daemon. More...
 
static char * stat_file = ( char* ) "/tmp/" DEF_STAT_FILE
 

Macro Definition Documentation

#define DEF_EXIT_FILE   "fgms_exit"

Definition at line 72 of file fg_server.cxx.

#define DEF_RESET_FILE   "fgms_reset"

Definition at line 75 of file fg_server.cxx.

#define DEF_SERVER_LOG   "fg_server.log"

Definition at line 63 of file fg_server.cxx.

Referenced by FG_SERVER::FG_SERVER().

#define DEF_STAT_FILE   "fgms_stat"

Definition at line 78 of file fg_server.cxx.

#define DEF_UPDATE_SECS   10

Definition at line 67 of file fg_server.cxx.

Referenced by FG_SERVER::FG_SERVER().

#define FGMS_USE_THREADS

Definition at line 20 of file fg_server.cxx.

Function Documentation

void* admin_helper ( void *  context)

Definition at line 261 of file fg_server.cxx.

Referenced by FG_SERVER::Loop().

void* detach_tracker ( void *  vp)

Definition at line 273 of file fg_server.cxx.

Referenced by FG_SERVER::Init().

void SigHUPHandler ( int  SigType)

If we receive a SIGHUP, reinit application.

Parameters
SigTypeint with signal type

Definition at line 603 of file main.cxx.

Referenced by FG_SERVER::check_files(), and main().

static void* telnet_helper ( void *  context)
static

Definition at line 247 of file fg_server.cxx.

Referenced by FG_SERVER::Loop().

Variable Documentation

bool AddCLI = true

Definition at line 60 of file fg_server.cxx.

Referenced by FG_SERVER::check_files(), FG_SERVER::Loop(), and ProcessConfig().

char* exit_file = ( char* ) "/tmp/" DEF_EXIT_FILE
static

Definition at line 94 of file fg_server.cxx.

Referenced by FG_SERVER::check_files(), and FG_SERVER::Init().

cDaemon Myself

An instance of cDaemon.

Definition at line 56 of file fg_server.cxx.

char* reset_file = ( char* ) "/tmp/" DEF_RESET_FILE
static

Definition at line 95 of file fg_server.cxx.

Referenced by FG_SERVER::check_files().

bool RunAsDaemon = false

Flag whether instance is a Daemon.

Definition at line 59 of file fg_server.cxx.

Referenced by FG_SERVER::Loop(), main(), ParseParams(), and ProcessConfig().

char* stat_file = ( char* ) "/tmp/" DEF_STAT_FILE
static

Definition at line 96 of file fg_server.cxx.

Referenced by FG_SERVER::check_files(), and FG_SERVER::Init().