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

This commit is contained in:
pieeebot committed 2026-09-13 14:10:24 +01:00
1 parent 0405a47bd1
commit a2dad85bb1
16 files changed
+781 -296

No files matched your search

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