Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3 | daniel-mar | 1 | |
2 | #include <fstream> |
||
3 | #include <stdlib.h> |
||
4 | #include <stdio.h> |
||
5 | #include <iostream> |
||
6 | #include <netdb.h> |
||
7 | #include <unistd.h> |
||
8 | #include <sstream> |
||
9 | #include <string.h> |
||
10 | #include <math.h> |
||
11 | #include <fcntl.h> |
||
12 | #include <pthread.h> |
||
13 | #include <netinet/in.h> |
||
14 | #include <sys/types.h> |
||
15 | #include <sys/socket.h> |
||
16 | #include <time.h> |
||
17 | #include <netinet/in.h> |
||
18 | #include <arpa/inet.h> |
||
19 | #include <errno.h> |
||
20 | #include <cstring> |
||
21 | |||
22 | #define PORT 49500 // TODO: konfigurierbar machen / command line |
||
23 | #define MAXMSG 512 |
||
24 | |||
25 | #define MAX_CONNECTIONS 100 |
||
26 | #define CONNECTION_TIMEOUT 60 |
||
27 | |||
28 | // In seconds. 21600 = 6 hours |
||
29 | #define CSVRELOADINTERVAL 21600 |
||
30 | |||
31 | #include <unordered_set> |
||
32 | |||
33 | using namespace std; |
||
34 |