mirror of
https://git.stillkill.net/MinecraftLeak/Mc-cpp-Snapshot.git
synced 2026-10-24 05:52:20 +01:00
Initial commit
This commit is contained in:
commit
a9c1b8fcb6
2100 files changed
+610164
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#include "RakNetSocket.h"
|
||||
#include "SocketIncludes.h"
|
||||
#include "SocketDefines.h"
|
||||
|
||||
using namespace RakNet;
|
||||
|
||||
RakNetSocket::RakNetSocket() {
|
||||
s = (unsigned int)-1;
|
||||
#if defined (_WIN32) && defined(USE_WAIT_FOR_MULTIPLE_EVENTS)
|
||||
recvEvent=INVALID_HANDLE_VALUE;
|
||||
#endif
|
||||
}
|
||||
RakNetSocket::~RakNetSocket()
|
||||
{
|
||||
if ((SOCKET)s != (SOCKET)-1)
|
||||
closesocket__(s);
|
||||
|
||||
#if defined (_WIN32) && defined(USE_WAIT_FOR_MULTIPLE_EVENTS)
|
||||
if (recvEvent!=INVALID_HANDLE_VALUE)
|
||||
{
|
||||
CloseHandle( recvEvent );
|
||||
recvEvent = INVALID_HANDLE_VALUE;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
Reference in new issue
Block a user