net_dos.c 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. /*
  2. Copyright (C) 1996-1997 Id Software, Inc.
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. #include "quakedef.h"
  16. #include "net_loop.h"
  17. #include "net_dgrm.h"
  18. #include "net_ser.h"
  19. net_driver_t net_drivers[MAX_NET_DRIVERS] =
  20. {
  21. {
  22. "Loopback",
  23. false,
  24. Loop_Init,
  25. Loop_Listen,
  26. Loop_SearchForHosts,
  27. Loop_Connect,
  28. Loop_CheckNewConnections,
  29. Loop_GetMessage,
  30. Loop_SendMessage,
  31. Loop_SendUnreliableMessage,
  32. Loop_CanSendMessage,
  33. Loop_CanSendUnreliableMessage,
  34. Loop_Close,
  35. Loop_Shutdown
  36. }
  37. ,
  38. {
  39. "Datagram",
  40. false,
  41. Datagram_Init,
  42. Datagram_Listen,
  43. Datagram_SearchForHosts,
  44. Datagram_Connect,
  45. Datagram_CheckNewConnections,
  46. Datagram_GetMessage,
  47. Datagram_SendMessage,
  48. Datagram_SendUnreliableMessage,
  49. Datagram_CanSendMessage,
  50. Datagram_CanSendUnreliableMessage,
  51. Datagram_Close,
  52. Datagram_Shutdown
  53. }
  54. ,
  55. {
  56. "Serial",
  57. false,
  58. Serial_Init,
  59. Serial_Listen,
  60. Serial_SearchForHosts,
  61. Serial_Connect,
  62. Serial_CheckNewConnections,
  63. Serial_GetMessage,
  64. Serial_SendMessage,
  65. Serial_SendUnreliableMessage,
  66. Serial_CanSendMessage,
  67. Serial_CanSendUnreliableMessage,
  68. Serial_Close,
  69. Serial_Shutdown
  70. }
  71. };
  72. int net_numdrivers = 3;
  73. #include "net_bw.h"
  74. #include "net_ipx.h"
  75. #include "net_mp.h"
  76. net_landriver_t net_landrivers[MAX_NET_DRIVERS] =
  77. {
  78. {
  79. "Beame & Whiteside TCP/IP",
  80. false,
  81. 0,
  82. BW_Init,
  83. BW_Shutdown,
  84. BW_Listen,
  85. BW_OpenSocket,
  86. BW_CloseSocket,
  87. BW_Connect,
  88. BW_CheckNewConnections,
  89. BW_Read,
  90. BW_Write,
  91. BW_Broadcast,
  92. BW_AddrToString,
  93. BW_StringToAddr,
  94. BW_GetSocketAddr,
  95. BW_GetNameFromAddr,
  96. BW_GetAddrFromName,
  97. BW_AddrCompare,
  98. BW_GetSocketPort,
  99. BW_SetSocketPort
  100. }
  101. ,
  102. {
  103. "IPX",
  104. false,
  105. 0,
  106. IPX_Init,
  107. IPX_Shutdown,
  108. IPX_Listen,
  109. IPX_OpenSocket,
  110. IPX_CloseSocket,
  111. IPX_Connect,
  112. IPX_CheckNewConnections,
  113. IPX_Read,
  114. IPX_Write,
  115. IPX_Broadcast,
  116. IPX_AddrToString,
  117. IPX_StringToAddr,
  118. IPX_GetSocketAddr,
  119. IPX_GetNameFromAddr,
  120. IPX_GetAddrFromName,
  121. IPX_AddrCompare,
  122. IPX_GetSocketPort,
  123. IPX_SetSocketPort
  124. }
  125. ,
  126. {
  127. "Win95 TCP/IP",
  128. false,
  129. 0,
  130. MPATH_Init,
  131. MPATH_Shutdown,
  132. MPATH_Listen,
  133. MPATH_OpenSocket,
  134. MPATH_CloseSocket,
  135. MPATH_Connect,
  136. MPATH_CheckNewConnections,
  137. MPATH_Read,
  138. MPATH_Write,
  139. MPATH_Broadcast,
  140. MPATH_AddrToString,
  141. MPATH_StringToAddr,
  142. MPATH_GetSocketAddr,
  143. MPATH_GetNameFromAddr,
  144. MPATH_GetAddrFromName,
  145. MPATH_AddrCompare,
  146. MPATH_GetSocketPort,
  147. MPATH_SetSocketPort
  148. }
  149. };
  150. int net_numlandrivers = 3;