]> icculus.org git repositories - divverent/darkplaces.git/blob - net_win.c
Updated Transfusion map list
[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_Connect,
34         Loop_CheckNewConnections,
35         Loop_GetMessage,
36         Loop_SendMessage,
37         Loop_SendUnreliableMessage,
38         Loop_CanSendMessage,
39         Loop_CanSendUnreliableMessage,
40         Loop_Close,
41         Loop_Shutdown
42         }
43         ,
44         {
45         "Datagram",
46         false,
47         Datagram_Init,
48         Datagram_Listen,
49         Datagram_SearchForHosts,
50         Datagram_Connect,
51         Datagram_CheckNewConnections,
52         Datagram_GetMessage,
53         Datagram_SendMessage,
54         Datagram_SendUnreliableMessage,
55         Datagram_CanSendMessage,
56         Datagram_CanSendUnreliableMessage,
57         Datagram_Close,
58         Datagram_Shutdown
59         }
60 };
61
62 int net_numdrivers = 2;
63
64
65 #include "net_wins.h"
66 #include "net_wipx.h"
67
68 net_landriver_t net_landrivers[MAX_NET_DRIVERS] =
69 {
70         {
71         "Winsock TCPIP",
72         false,
73         0,
74         WINS_Init,
75         WINS_Shutdown,
76         WINS_Listen,
77         WINS_OpenSocket,
78         WINS_CloseSocket,
79         WINS_Connect,
80         WINS_CheckNewConnections,
81         WINS_Read,
82         WINS_Write,
83         WINS_Broadcast,
84         WINS_AddrToString,
85         WINS_StringToAddr,
86         WINS_GetSocketAddr,
87         WINS_GetNameFromAddr,
88         WINS_GetAddrFromName,
89         WINS_AddrCompare,
90         WINS_GetSocketPort,
91         WINS_SetSocketPort
92         },
93         {
94         "Winsock IPX",
95         false,
96         0,
97         WIPX_Init,
98         WIPX_Shutdown,
99         WIPX_Listen,
100         WIPX_OpenSocket,
101         WIPX_CloseSocket,
102         WIPX_Connect,
103         WIPX_CheckNewConnections,
104         WIPX_Read,
105         WIPX_Write,
106         WIPX_Broadcast,
107         WIPX_AddrToString,
108         WIPX_StringToAddr,
109         WIPX_GetSocketAddr,
110         WIPX_GetNameFromAddr,
111         WIPX_GetAddrFromName,
112         WIPX_AddrCompare,
113         WIPX_GetSocketPort,
114         WIPX_SetSocketPort
115         }
116
117 };
118
119 int net_numlandrivers = 2;
120