Thanks to Elric for adding dpmaster support!
[divverent/darkplaces.git] / net_win.c
1 /*
2 Copyright (C) 1996-1997 Id Software, Inc.
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
12
13 See the GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18
19 */
20 #include "quakedef.h"
21
22 #include "net_loop.h"
23 #include "net_dgrm.h"
24
25 net_driver_t net_drivers[MAX_NET_DRIVERS] =
26 {
27         {
28         "Loopback",
29         false,
30         Loop_Init,
31         Loop_Listen,
32         Loop_SearchForHosts,
33         Loop_SearchForInetHosts,
34         Loop_Connect,
35         Loop_CheckNewConnections,
36         Loop_GetMessage,
37         Loop_SendMessage,
38         Loop_SendUnreliableMessage,
39         Loop_CanSendMessage,
40         Loop_CanSendUnreliableMessage,
41         Loop_Close,
42         Loop_Shutdown
43         }
44         ,
45         {
46         "Datagram",
47         false,
48         Datagram_Init,
49         Datagram_Listen,
50         Datagram_SearchForHosts,
51         Datagram_SearchForInetHosts,
52         Datagram_Connect,
53         Datagram_CheckNewConnections,
54         Datagram_GetMessage,
55         Datagram_SendMessage,
56         Datagram_SendUnreliableMessage,
57         Datagram_CanSendMessage,
58         Datagram_CanSendUnreliableMessage,
59         Datagram_Close,
60         Datagram_Shutdown
61         }
62 };
63
64 int net_numdrivers = 2;
65
66
67 #include "net_wins.h"
68 #include "net_wipx.h"
69
70 net_landriver_t net_landrivers[MAX_NET_DRIVERS] =
71 {
72         {
73         "Winsock TCPIP",
74         false,
75         0,
76         WINS_Init,
77         WINS_Shutdown,
78         WINS_Listen,
79         WINS_OpenSocket,
80         WINS_CloseSocket,
81         WINS_Connect,
82         WINS_CheckNewConnections,
83         WINS_Recv,
84         WINS_Send,
85         WINS_Read,
86         WINS_Write,
87         WINS_Broadcast,
88         WINS_AddrToString,
89         WINS_StringToAddr,
90         WINS_GetSocketAddr,
91         WINS_GetNameFromAddr,
92         WINS_GetAddrFromName,
93         WINS_AddrCompare,
94         WINS_GetSocketPort,
95         WINS_SetSocketPort
96         },
97         {
98         "Winsock IPX",
99         false,
100         0,
101         WIPX_Init,
102         WIPX_Shutdown,
103         WIPX_Listen,
104         WIPX_OpenSocket,
105         WIPX_CloseSocket,
106         WIPX_Connect,
107         WIPX_CheckNewConnections,
108         WIPX_Recv,
109         WIPX_Send,
110         WIPX_Read,
111         WIPX_Write,
112         WIPX_Broadcast,
113         WIPX_AddrToString,
114         WIPX_StringToAddr,
115         WIPX_GetSocketAddr,
116         WIPX_GetNameFromAddr,
117         WIPX_GetAddrFromName,
118         WIPX_AddrCompare,
119         WIPX_GetSocketPort,
120         WIPX_SetSocketPort
121         }
122
123 };
124
125 int net_numlandrivers = 2;
126