phaser-server  0.0.2
Functions | Variables
main.cpp File Reference

Program entry point. More...

#include <stdexcept>
#include <iostream>
#include <home.h>
#include <cpplib.h>
#include <errno.h>
#include <logger.h>
#include <asm/param.h>
#include <string.h>
#include "const.h"
#include "session.h"
Include dependency graph for main.cpp:

Functions

std::string GetHostName (void)
 Get the name of the host running this software. More...
 
int main (int argc, char **argv)
 Program's entry point. More...
 

Variables

const char Help []
 

Detailed Description

Program entry point.

Author
Christopher J. Slominski

Function Documentation

◆ GetHostName()

std::string GetHostName ( void  )

Get the name of the host running this software.

Returns
Host name.

◆ main()

int main ( int  argc,
char **  argv 
)

Program's entry point.

This is the main function for the RF Phaser Server. The main function instigates the reading of the configuration file, ensures the server is not already running, converts to a daemon process, and hands the main thread over to the client session manager.

Parameters
argc- Command line argument count.
argv- Command line argument list.
Returns
0-success 1-fatal error

Variable Documentation

◆ Help

const char Help[]
Initial value:
="\n" SERVER_ID "\n"
"This server requires no command line arguments. It is a daemon process,\n"
"which must be executed on the host specified in the configuration file.\n"