Remove Init & Exit, logic is now in Win32Platform.cpp.

This commit is contained in:
Jean-Baptiste Perrier
2021-01-26 15:55:51 +01:00
parent 54b9eaa969
commit c20f0fa430
5 changed files with 18 additions and 39 deletions

View File

@@ -14,7 +14,6 @@ static_assert(sizeof NetworkEndPoint::Data >= sizeof sockaddr_in6, "NetworkEndPo
static const IN6_ADDR v4MappedPrefix = { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00 } };
static WSAData _wsaData;
/*
* Known issues :
@@ -136,18 +135,6 @@ static void TranslateSockOptToNative(NetworkSocketOption option, int32* level, i
}
}
bool Win32Network::Init()
{
if (WSAStartup(MAKEWORD(2, 0), &_wsaData) != 0)
return true;
return false;
}
void Win32Network::Exit()
{
WSACleanup();
}
bool Win32Network::CreateSocket(NetworkSocket& socket, NetworkProtocolType proto, NetworkIPVersion ipv)
{
socket.Protocol = proto;