25 static DWORD baseTime = timeGetTime();
32 ZeroMemory(&info,
sizeof(info));
34 WORD ver = MAKEWORD(2,2);
35 int err = WSAStartup(ver, &info);
55 return info.szDescription;
61 return WSAGetLastError();
67 DWORD msec = timeGetTime();
69 if (msec >= baseTime) {
70 return msec - baseTime;
74 DWORD extra = 0xffffffff;
75 return msec + extra - baseTime;
82 return (
long) time(0);
89 ZeroMemory(hostname,
sizeof(hostname));
90 ::gethostname(hostname,
sizeof(hostname));