Changes based on debugging.

This commit is contained in:
Jonathan Naylor
2016-01-25 22:36:16 +00:00
parent 3f76ade5c4
commit 8860b72e6c
4 changed files with 20 additions and 4 deletions

View File

@@ -43,6 +43,21 @@ m_fd(-1)
#endif
}
CUDPSocket::CUDPSocket(unsigned int port) :
m_address(),
m_port(port),
m_fd(-1)
{
assert(port > 0U);
#if defined(_WIN32) || defined(_WIN64)
WSAData data;
int wsaRet = ::WSAStartup(MAKEWORD(2, 2), &data);
if (wsaRet != 0)
LogError("Error from WSAStartup");
#endif
}
CUDPSocket::CUDPSocket() :
m_address(),
m_port(0U),