1 |
bearsoft |
1.1 |
#ifndef __Header_H__
|
2 |
|
|
#define __Header_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 "../../Binary/BinaryInput.h"
|
10 |
|
|
#include "../../String/StringInput.h"
|
11 |
|
|
|
12 |
|
|
class Header
|
13 |
|
|
{
|
14 |
|
|
|
15 |
|
|
public:
|
16 |
|
|
|
17 |
|
|
Header(ConfigInput *iConfigInput);
|
18 |
|
|
~Header();
|
19 |
|
|
|
20 |
|
|
bool makeAndSendHeaderWithStringData(String &string);
|
21 |
|
|
bool makeAndSendHeaderWithMessageForbidden();
|
22 |
|
|
bool makeAndSendHeaderWithMessageNotFound();
|
23 |
|
|
bool makeAndSendHeaderWithBinaryData(BinaryInput *binaryInput, String &contentType);
|
24 |
|
|
bool Header::makeAndSendHeaderErrorMessage(String &status);
|
25 |
|
|
|
26 |
|
|
int socket;
|
27 |
|
|
ConfigInput *configInput;
|
28 |
|
|
String *protocolType;
|
29 |
|
|
String *filePath;
|
30 |
|
|
String *filePathWithoutRootPath;
|
31 |
|
|
String *rootPath;
|
32 |
|
|
StringInput *stringInput;
|
33 |
|
|
|
34 |
|
|
};
|
35 |
|
|
|
36 |
|
|
#endif |