13 |
|
#include <string> |
14 |
|
#include <sstream> |
15 |
|
#include <list> |
16 |
+ |
#include <set> |
17 |
|
#include <map> |
18 |
|
#include <cstdlib> |
19 |
|
#include <ctime> |
35 |
|
char* value = new char[name.size() + 1]; |
36 |
|
|
37 |
|
sprintf(value, name.c_str()); |
38 |
< |
|
38 |
> |
|
39 |
|
int code = putenv(value); |
40 |
|
|
41 |
|
return code; |
67 |
|
private: |
68 |
|
multimap<string, string> cgi; |
69 |
|
bool page; |
70 |
+ |
bool host; |
71 |
+ |
bool name; |
72 |
+ |
bool address; |
73 |
+ |
bool platform; |
74 |
+ |
bool since; |
75 |
|
void parse(const string& method); |
76 |
+ |
void mode(); |
77 |
|
void display(const string& method); |
78 |
< |
void header(); |
78 |
> |
void header(const string& method); |
79 |
|
void footer(); |
80 |
|
public: |
81 |
|
HostStatus(); |