greenhouse
webserver.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "TCPSocket.h"
4 #include "database.h"
5 #include "socket.h"
6 
7 static const int MAX_CONN = 5;
8 
9 class WebServer {
10 public:
11  WebServer(Database *database);
12 
17  int start();
22  void tick();
29  TCPSocket *getSocket();
30 };
int start()
Definition: webserver.cpp:28
WebServer(Database *database)
Definition: webserver.cpp:26
void tick()
Definition: webserver.cpp:92
TCPSocket * getSocket()
Definition: webserver.cpp:165
static const int MAX_CONN
Definition: webserver.h:7