Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
1.7 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef NET_WS_HEADERS_H
  7. #define NET_WS_HEADERS_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #ifdef _WIN32
  12. #if !defined( _X360 )
  13. #include "winlite.h"
  14. #endif
  15. #endif
  16. #include "tier0/vcrmode.h"
  17. #include "vstdlib/random.h"
  18. #include "convar.h"
  19. #include "tier0/icommandline.h"
  20. #include "filesystem_engine.h"
  21. #include "proto_oob.h"
  22. #include "net_chan.h"
  23. #include "inetmsghandler.h"
  24. #include "protocol.h" // CONNECTIONLESS_HEADER
  25. #include "sv_filter.h"
  26. #include "sys.h"
  27. #include "tier0/tslist.h"
  28. #include "tier1/mempool.h"
  29. #include "../utils/bzip2/bzlib.h"
  30. #include "matchmaking.h"
  31. #if defined(_WIN32)
  32. #if !defined( _X360 )
  33. #include <winsock.h>
  34. #else
  35. #include "winsockx.h"
  36. #endif
  37. // #include <process.h>
  38. typedef int socklen_t;
  39. #elif defined POSIX
  40. #include <unistd.h>
  41. #include <sys/socket.h>
  42. #include <netinet/in.h>
  43. #include <arpa/inet.h>
  44. #include <netinet/tcp.h>
  45. #include <netdb.h>
  46. #include <sys/param.h>
  47. #include <sys/ioctl.h>
  48. #include <sys/uio.h>
  49. #include <errno.h>
  50. #include <string.h>
  51. #include <stdlib.h>
  52. #define WSAEWOULDBLOCK EWOULDBLOCK
  53. #define WSAEMSGSIZE EMSGSIZE
  54. #define WSAEADDRNOTAVAIL EADDRNOTAVAIL
  55. #define WSAEAFNOSUPPORT EAFNOSUPPORT
  56. #define WSAECONNRESET ECONNRESET
  57. #define WSAECONNREFUSED ECONNREFUSED
  58. #define WSAEADDRINUSE EADDRINUSE
  59. #define WSAENOTCONN ENOTCONN
  60. #define ioctlsocket ioctl
  61. #define closesocket close
  62. #undef SOCKET
  63. typedef int SOCKET;
  64. #define FAR
  65. #endif
  66. #include "sv_rcon.h"
  67. #ifndef SWDS
  68. #include "cl_rcon.h"
  69. #endif
  70. #if defined( _X360 )
  71. #include "xbox/xbox_win32stubs.h"
  72. #endif
  73. #endif // NET_WS_HEADERS_H