-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
46 lines (38 loc) · 778 Bytes
/
main.cpp
File metadata and controls
46 lines (38 loc) · 778 Bytes
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
#include "main.hpp"
#include "lib/interface.hpp"
#include "lib/inputs.hpp"
#include "lib/mes.hpp"
#include "lib/tcp.hpp"
int main(int argc, char **argv)
{
if (argc == 1)
{
KEY key;
Socket soc;
MES messi(&soc);
GUI gui(&messi, &soc, &key.input);
soc.start();
messi.start();
key.start();
gui.start();
while (key.input != 0x1b)
;
gui.stop();
key.stop();
soc.stop();
messi.stop();
system("clear");
return 0;
}
else if (argc == 2 && !strcmp(argv[1], "teste"))
{
cout << "MODO DE TESTE!" << endl;
return 0;
}
else
{
cout << "NENHUM MODO!" << endl;
return 0;
}
return -1;
}