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"
|
| 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...
|
| |
Program entry point.
- Author
- Christopher J. Slominski
◆ 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
◆ 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"