mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
Net Windows automatic (un)initialize
automatic network (un)initialization on windows NumericString 64-bit compile/warning fixes
This commit is contained in:
@@ -67,9 +67,6 @@ SocketImpl::SocketImpl():
|
||||
_sockfd(POCO_INVALID_SOCKET),
|
||||
_blocking(true)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
Poco::Net::initializeNetwork();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -77,18 +74,12 @@ SocketImpl::SocketImpl(poco_socket_t sockfd):
|
||||
_sockfd(sockfd),
|
||||
_blocking(true)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
Poco::Net::initializeNetwork();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
SocketImpl::~SocketImpl()
|
||||
{
|
||||
close();
|
||||
#if defined(_WIN32)
|
||||
Poco::Net::uninitializeNetwork();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user