Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

myserver.cpp File Reference


Defines

#define MYSERVER_RUNAS_CONSOLE   1
#define MYSERVER_RUNAS_SERVICE   2

Functions

void consoleService ()
int main (int argn, char **argv)
void registerService ()
void registerSignals ()
void removeService ()
void RunAsService ()
void runService ()
void Sig_Hup (int signal)
void Sig_Quit (int signal)
int writePidfile (const char *)

Variables

int argn
char ** argv
char * path
const char * versionOfSoftware = "0.8.12"

Define Documentation

#define MYSERVER_RUNAS_CONSOLE   1
 

External libraries to be included in the project.

#define MYSERVER_RUNAS_SERVICE   2
 


Function Documentation

void consoleService  ) 
 

Start MyServer in console mode.

int main int  argn,
char **  argv
 

Main function for MyServer.

void registerService  ) 
 

Register the service.

void registerSignals  ) 
 

void removeService  ) 
 

Unregister the OS service.

void RunAsService  ) 
 

Start the service.

void runService  ) 
 

Run MyServer service.

void Sig_Hup int  signal  ) 
 

void Sig_Quit int  signal  ) 
 

int writePidfile const char *  filename  ) 
 

Write the current PID to the file.


Variable Documentation

int argn
 

char** argv
 

char* path [static]
 

const char* versionOfSoftware = "0.8.12"
 

Change this to reflect the version of the software.


Generated on Thu May 1 12:40:59 2008 for MyServer by  doxygen 1.3.9.1