server/Main.cpp File Reference

#include <string>
#include "SDL.h"
#include "regcom/server/Server.h"

Defines

#define PACKAGE   "regcom"
#define VERSION   "0.0.5"

Functions

void display_help (void)
void display_version (void)
void report_invalid_option (char *option)
int get_int_argument (char *option)
char * get_string_argument (char *option)
void parse_options (int argc, char **argv)
int main (int argc, char **argv)

Variables

struct {
   int   server_port
   std::string   database_host
   std::string   database_user
   std::string   database_pass
options
static const char * help_text []

Define Documentation

#define PACKAGE   "regcom"

#define VERSION   "0.0.5"


Function Documentation

void display_help ( void   ) 

void display_version ( void   ) 

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

void report_invalid_option ( char *  option  ) 

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

int get_int_argument ( char *  option  ) 

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

char* get_string_argument ( char *  option  ) 

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

void parse_options ( int  argc,
char **  argv 
)

Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)

int main ( int  argc,
char **  argv 
)

Main entry point.

Full Description
This function is the main entry point for the server program.


Variable Documentation

std::string database_host

std::string database_user

std::string database_pass

struct { ... } options [static]

const char* help_text[] [static]

Initial value:

{
    "                                                   \n",
    "Usage: regcom.server [OPTION] ...                  \n",
    "                                                   \n",
    "Options:                                           \n",
    "                                                   \n",
    "  --help      display help information             \n",
    "  --version   display version information          \n",
    "                                                   \n",
    "Server options:                                    \n",
    "                                                   \n",
    "  --server_port=PORT   server port                 \n",
    "                                                   \n",
    "Database options:                                  \n",
    "                                                   \n",
    "  --database_host=HOST   database host name        \n",
    "  --database_user=USER   database user name        \n",
    "  --database_pass=PASS   database password         \n",
    "                                                   \n",
    "Report bugs to <regcom-bugs@lists.sourceforge.net>.\n",
    "                                                   \n",
    NULL
}
Full Description
(*** add full description here ***)
Returns:
(*** add return description here ***)