#include <iostream>
#include <csignal>
#include <cstdlib>
#include "server.h"
Go to the source code of this file.
Functions | |
void | terminate (int signum) |
int | main () |
Variables | |
Server * | theServer |
int | serverPort = 4444 |
int main | ( | ) |
Implements signal SIGTERM and SIGINT, enabling the server to stop on these. Instantiates the Server and calls start using the port defined using serverPort.
Definition at line 62 of file Detector.cpp.
References serverPort, Server::start(), terminate(), and theServer.
void terminate | ( | int | signum | ) |
Echoes the terminate signal number and stops the server.
signum | the signal number sent from the system. |
Definition at line 50 of file Detector.cpp.
References Server::stop(), and theServer.
Referenced by main().
int serverPort = 4444 |
Defines which port the server should use.
Definition at line 45 of file Detector.cpp.
Referenced by main().
Definition at line 41 of file Detector.cpp.
Referenced by main(), and terminate().