Massive update!
[link.git] / Source / HTTP / ServerThread.hpp
blob7a719e8026c579c2f767e15a0620e3fe545bdefb
1 #ifndef HTTP
3 /*
4 * Manages HTTP connections.
5 */
6 namespace HTTP {
7 class ServerThread {
8 public:
9 ServerThread(int port, int maxConnections, int maxQueuedConnections, bool* Running);
10 int getPort(), getMaxConnections(), getMaxQueuedConnections();
11 bool isRunning();
12 private:
13 int port, maxConnections, maxQueuedConnections;
14 bool* Running;
17 class ClientData {
18 public:
19 ClientData(ServerThread* serverThread, int socket);
20 ServerThread* getServerThread();
21 int getSocket();
22 private:
23 ServerThread* serverThread;
24 int socket;
28 #endif