13 |
|
#include <string> |
14 |
|
#include <sstream> |
15 |
|
#include <list> |
16 |
+ |
#include <set> |
17 |
|
#include <map> |
18 |
|
#include <cstdlib> |
19 |
|
#include <ctime> |
43 |
|
|
44 |
|
inline void sunsetenv(const string& name) { unsetenv(name.c_str()); } |
45 |
|
|
45 |
– |
#ifdef __CYGWIN__ |
46 |
– |
|
47 |
– |
inline time_t timegm(struct tm* time) |
48 |
– |
{ |
49 |
– |
string zone = sgetenv("TZ"); |
50 |
– |
|
51 |
– |
sputenv("TZ="); |
52 |
– |
tzset(); |
53 |
– |
|
54 |
– |
time_t when = mktime(time); |
55 |
– |
|
56 |
– |
sputenv("TZ=" + zone); |
57 |
– |
tzset(); |
58 |
– |
|
59 |
– |
return when; |
60 |
– |
} |
61 |
– |
|
62 |
– |
#endif |
63 |
– |
|
46 |
|
class HostStatus |
47 |
|
{ |
48 |
|
private: |