Move the logic of load-balancing etc. into ServerPool, which frees external users...
[cubemap] / server.h
index 7d94e17b76fa811fb8e98c927bafd81e4c265fb0..2cb078e3fc418bdd6b47665bba31635b3af6e4e2 100644 (file)
--- a/server.h
+++ b/server.h
@@ -3,10 +3,11 @@
 
 #include <stdint.h>
 #include <pthread.h>
+#include <sys/epoll.h>
 #include <string>
 #include <map>
+#include <vector>
 
-#define NUM_SERVERS 4
 #define BACKLOG_SIZE 1048576
 #define EPOLL_MAX_EVENTS 8192
 #define EPOLL_TIMEOUT_MS 20