mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 13:17:49 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#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
|
||||
|
||||
// BEGIN ROBLOX CHANGES
|
||||
// If this fixes an issue, then there may be a multiple-deletion bug.
|
||||
s = static_cast<SOCKET>(-1);
|
||||
// END ROBLOX CHANGES
|
||||
}
|
||||
Reference in New Issue
Block a user