summaryrefslogtreecommitdiff
path: root/engine/net_ws_headers.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /engine/net_ws_headers.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'engine/net_ws_headers.h')
-rw-r--r--engine/net_ws_headers.h89
1 files changed, 89 insertions, 0 deletions
diff --git a/engine/net_ws_headers.h b/engine/net_ws_headers.h
new file mode 100644
index 0000000..9607e19
--- /dev/null
+++ b/engine/net_ws_headers.h
@@ -0,0 +1,89 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef NET_WS_HEADERS_H
+#define NET_WS_HEADERS_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#ifdef _WIN32
+#if !defined( _X360 )
+#include "winlite.h"
+#endif
+#endif
+
+#include "tier0/vcrmode.h"
+#include "vstdlib/random.h"
+#include "convar.h"
+#include "tier0/icommandline.h"
+#include "filesystem_engine.h"
+#include "proto_oob.h"
+#include "net_chan.h"
+#include "inetmsghandler.h"
+#include "protocol.h" // CONNECTIONLESS_HEADER
+#include "sv_filter.h"
+#include "sys.h"
+#include "tier0/tslist.h"
+#include "tier1/mempool.h"
+#include "../utils/bzip2/bzlib.h"
+#include "matchmaking.h"
+
+#if defined(_WIN32)
+
+#if !defined( _X360 )
+#include <winsock.h>
+#else
+#include "winsockx.h"
+#endif
+
+// #include <process.h>
+typedef int socklen_t;
+
+#elif defined POSIX
+
+#include <unistd.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <netinet/tcp.h>
+#include <netdb.h>
+#include <sys/param.h>
+#include <sys/ioctl.h>
+#include <sys/uio.h>
+#include <errno.h>
+#include <string.h>
+#include <stdlib.h>
+
+#define WSAEWOULDBLOCK EWOULDBLOCK
+#define WSAEMSGSIZE EMSGSIZE
+#define WSAEADDRNOTAVAIL EADDRNOTAVAIL
+#define WSAEAFNOSUPPORT EAFNOSUPPORT
+#define WSAECONNRESET ECONNRESET
+#define WSAECONNREFUSED ECONNREFUSED
+#define WSAEADDRINUSE EADDRINUSE
+#define WSAENOTCONN ENOTCONN
+
+#define ioctlsocket ioctl
+#define closesocket close
+
+#undef SOCKET
+typedef int SOCKET;
+#define FAR
+
+#endif
+
+#include "sv_rcon.h"
+#ifndef SWDS
+#include "cl_rcon.h"
+#endif
+
+#if defined( _X360 )
+#include "xbox/xbox_win32stubs.h"
+#endif
+
+#endif // NET_WS_HEADERS_H