1 |
bearsoft |
1.1 |
#ifndef __WebServer_H__
|
2 |
|
|
#define __WebServer_H__
|
3 |
|
|
|
4 |
|
|
#include "../../String/String.h"
|
5 |
|
|
#include "../../Binary/BinaryInput.h"
|
6 |
|
|
#include "../../LinkedList/StringLinkedList.h"
|
7 |
|
|
#include "../../String/ConfigInput.h"
|
8 |
|
|
#include "../../NetWork/PacketInfo.h"
|
9 |
|
|
#include "Directory.h"
|
10 |
|
|
#include "Header.h"
|
11 |
|
|
#include "HomePageHandler.h"
|
12 |
|
|
|
13 |
|
|
class WebServer
|
14 |
|
|
{
|
15 |
|
|
|
16 |
|
|
public:
|
17 |
|
|
|
18 |
|
|
WebServer::WebServer(ConfigInput *iConfigInput);
|
19 |
|
|
WebServer::~WebServer();
|
20 |
|
|
bool init(PacketInfo *packetInfo);
|
21 |
|
|
bool getCommando(String &filePath, int socket);
|
22 |
|
|
|
23 |
|
|
private:
|
24 |
|
|
|
25 |
|
|
StringLinkedList *commandoList;
|
26 |
|
|
ConfigInput *configInput;
|
27 |
|
|
Directory *directory;
|
28 |
|
|
Header *header;
|
29 |
|
|
BinaryInput *binaryInput;
|
30 |
|
|
HomePageHandler *homePageHandler;
|
31 |
|
|
};
|
32 |
|
|
|
33 |
|
|
#endif |