mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 06:53:42 +00:00
Changes based on debugging.
This commit is contained in:
parent
3f76ade5c4
commit
8860b72e6c
4 changed files with 20 additions and 4 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue