[-] Fixed compilation
This commit is contained in:
parent
15e7a02002
commit
9a975a6304
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ bool CHost::isValid() const
|
|||
class CUDPSocket_Impl
|
||||
{
|
||||
public:
|
||||
CUDPSocket_Impl() : socket(Socket(-1) {}
|
||||
CUDPSocket_Impl() : socket(Socket(-1)) {}
|
||||
~CUDPSocket_Impl() { if (IsValid()) { Close(); } }
|
||||
bool Open(const CHost &host) { socket = NetOpenUDP(host.getIp(), host.getPort()); return socket != INVALID_SOCKET; }
|
||||
void Close() { NetCloseUDP(socket); socket = Socket(-1); }
|
||||
|
|
Loading…
Add table
Reference in a new issue