Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Server Core API
[Common API]


Functions

void do_init (const int argc, char **argv)
 Called on server startup.
void set_termfunc (void(*termfunc)(void))
 Assign a function as a callback on termination.
void versionscreen (void)
 Prints version.
void display_title (void)
 Prints logo Prints a fancy and colourful logo.
int get_version (char flag)
 Gets server version number.

Variables

int runflag
 Main loop control.
time_t start_time
 Server startup time.

Function Documentation

void display_title void   ) 
 

Prints logo Prints a fancy and colourful logo.

Todo:
This is completely useless, we don't need daemon to do this.

void do_init const int  argc,
char **  argv
 

Called on server startup.

A standalone server must implement this function. The core module will call this function on startup.

Parameters:
argc The argument counter.
argv The argument vector.

int get_version char  flag  ) 
 

Gets server version number.

Parameters:
flag The type of version info requested.
Returns:
The version number requested.

void set_termfunc void(*)(void)  termfunc  ) 
 

Assign a function as a callback on termination.

This is not useful at the moment, since the signal handler is broken. Refer to src/common/core.c, function sig_proc().

Parameters:
termfunc A function pointer

void versionscreen void   ) 
 

Prints version.

Prints a fancy and colourful version information.

Todo:
We don't need daemon to do this.


Variable Documentation

int runflag
 

Main loop control.

Set this to 0 to terminate the main loop.

Todo:
This should be encapsulated by a quit/exit function call.

time_t start_time
 

Server startup time.

This is used for uptime calculation.


Generated on Fri Apr 28 10:20:06 2006 for OpenAthena by  doxygen 1.4.4