Add Quakey

This commit is contained in:
2026-01-16 14:45:09 +01:00
parent 18e74a92c0
commit c10493881b
66 changed files with 12760 additions and 11817 deletions
+12 -4
View File
@@ -1,15 +1,23 @@
#ifndef TCP_INCLUDED
#define TCP_INCLUDED
#include <stdbool.h>
#ifdef MAIN_SIMULATION
# define QUAKEY_ENABLE_MOCKS
# include <quakey.h>
#else
# ifdef _WIN32
# include <winsock2.h>
# endif
#endif
#include "system.h"
#include "byte_queue.h"
#ifdef _WIN32
#define CLOSE_SOCKET sys_closesocket
#define CLOSE_SOCKET closesocket
#else
#define CLOSE_SOCKET sys_close
#define SOCKET int
#define INVALID_SOCKET -1
#define CLOSE_SOCKET close
#endif
#ifndef TCP_CONNECTION_LIMIT