-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyServer.h
56 lines (46 loc) · 1.05 KB
/
yServer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// C++ Interface: server_chara
//
// Description:
//
//
// Author: Arnaud Sevin <[email protected]>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef YSERVER_H
#define YSERVER_H
#include "server_tcp.h"
#include <sys/stat.h>
#include <sys/mman.h>
/**
* @brief Classe représentant le serveur d'acquisition Yorick
* @author Arnaud Sevin <[email protected]>
* @version 1.0
* @date 12/10/2011
*/
class YServer : public Server_TCP {
private:
///Etat du serveur
static bool working;
public:
YServer();
/**
* Permet de créer un serveur PERSEE
* @param config_filename Emplacement du fichier de config
*/
YServer(const char *config_filename);
~YServer();
private:
/**
* Permet connaitre l'état du serveur
* @return Vrai s'il écoute les commandes du PC maitre
*/
bool is_working() {return working;}
void traite_socket(char keyword[9], int nb_arg, char *arg[MAXARGS]);
void display_help();
void start_command();
static void * execute_command(void *);
};
#endif