chore/fix: clean up NetworkSocketLayer, fix console compile errors

This commit is contained in:
2026-09-13 14:10:24 +01:00
parent 0405a47bd1
commit a2dad85bb1
16 changed files with 781 additions and 296 deletions
@@ -0,0 +1,23 @@
#pragma once
#include "stdafx.h"
#ifdef _WINDOWS64
#include <WinSock2.h>
#elif defined _XBOX
#include <winsockx.h>
#else
typedef int SOCKET;
#define INVALID_SOCKET -1
#endif
class NetworkSocketManager {
public:
bool IsSocketValid(SOCKET sock);
bool IsSentValid(int sent);
int getSocketError(SOCKET sock);
int CloseSocket(SOCKET sock);
int TCPaddrinfo(PCSTR ip, int port);
bool InitNetwork();
SOCKET MakeHostSocket(int port);
};