the whole game

This commit is contained in:
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

View File

@@ -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
}