#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <signal.h>
#include <pwd.h>
#include "APIServer.hpp"
Go to the source code of this file.
Macros | |
#define | RUN_AS_DAEMON |
#define | OOREXX_PIDFILE "/tmp/ooRexx.pid" |
Functions | |
void | Run (bool asService) |
void | Stop (int signo) |
static bool | morph2daemon (void) |
int | main (int argc, char *argv[]) |
Variables | |
bool | run_as_daemon = true |
APIServer | apiServer |
#define OOREXX_PIDFILE "/tmp/ooRexx.pid" |
Definition at line 60 of file unix/linux/APIService.cpp.
#define RUN_AS_DAEMON |
Definition at line 55 of file unix/linux/APIService.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 183 of file unix/linux/APIService.cpp.
References morph2daemon(), OOREXX_PIDFILE, Run(), run_as_daemon, and Stop().
|
static |
Definition at line 124 of file unix/linux/APIService.cpp.
References OOREXX_PIDFILE, and run_as_daemon.
Referenced by main().
void Run | ( | bool | asService | ) |
Definition at line 80 of file unix/linux/APIService.cpp.
References apiServer, APIServer::initServer(), APIServer::listenForConnections(), and APIServer::terminateServer().
Referenced by main().
void Stop | ( | int | signo | ) |
Definition at line 102 of file unix/linux/APIService.cpp.
References apiServer, and APIServer::terminateServer().
Referenced by main().
APIServer apiServer |
Definition at line 67 of file unix/linux/APIService.cpp.
bool run_as_daemon = true |
Definition at line 61 of file unix/linux/APIService.cpp.
Referenced by main(), and morph2daemon().