mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-31 07:58:24 +02:00
Removed old net initialization code
This commit is contained in:
parent
47af51fdfb
commit
f9243c2073
@ -245,23 +245,4 @@ void DNS::aierror(int code, const std::string& arg)
|
||||
}
|
||||
|
||||
|
||||
void initializeNetwork()
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
WORD version = MAKEWORD(2, 2);
|
||||
WSADATA data;
|
||||
if (WSAStartup(version, &data) != 0)
|
||||
throw NetException("Failed to initialize network subsystem");
|
||||
#endif // _WIN32
|
||||
}
|
||||
|
||||
|
||||
void uninitializeNetwork()
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
WSACleanup();
|
||||
#endif // _WIN32
|
||||
}
|
||||
|
||||
|
||||
} } // namespace Poco::Net
|
||||
|
Loading…
x
Reference in New Issue
Block a user