handled signals

This commit is contained in:
bettercallous
2024-04-08 07:40:49 +00:00
parent 2fdb0eb6c4
commit 614f631723
3 changed files with 21 additions and 1 deletions

View File

@@ -1,19 +1,23 @@
#ifndef SERVER_HPP
#define SERVER_HPP
#include <iostream>
#include <cstdlib>
#include <csignal>
class Server {
private:
int _port;
static bool _signal;
std::string _password;
public:
Server();
~Server();
void parseArgs(int ac, char **av);
static void receiveSignal(int signum);
void init();
};
#endif