]> git.xonotic.org Git - xonotic/darkplaces.git/blob - net_win.c
corrected comment again, indicating that the offset for polygon 3 is in the bottom...
[xonotic/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         Loop_Heartbeat
44         }
45         ,
46         {
47         "Datagram",
48         false,
49         Datagram_Init,
50         Datagram_Listen,
51         Datagram_SearchForHosts,
52         Datagram_SearchForInetHosts,
53         Datagram_Connect,
54         Datagram_CheckNewConnections,
55         Datagram_GetMessage,
56         Datagram_SendMessage,
57         Datagram_SendUnreliableMessage,
58         Datagram_CanSendMessage,
59         Datagram_CanSendUnreliableMessage,
60         Datagram_Close,
61         Datagram_Shutdown,
62         Datagram_Heartbeat
63         }
64 };
65
66 int net_numdrivers = 2;
67
68
69 #include "net_wins.h"
70 #include "net_wipx.h"
71
72 net_landriver_t net_landrivers[MAX_NET_DRIVERS] =
73 {
74         {
75         "Winsock TCPIP",
76         false,
77         0,
78         WINS_Init,
79         WINS_Shutdown,
80         WINS_Listen,
81         WINS_OpenSocket,
82         WINS_CloseSocket,
83         WINS_Connect,
84         WINS_CheckNewConnections,
85         WINS_Recv,
86         WINS_Send,
87         WINS_Read,
88         WINS_Write,
89         WINS_Broadcast,
90         WINS_AddrToString,
91         WINS_StringToAddr,
92         WINS_GetSocketAddr,
93         WINS_GetNameFromAddr,
94         WINS_GetAddrFromName,
95         WINS_AddrCompare,
96         WINS_GetSocketPort,
97         WINS_SetSocketPort
98         },
99         {
100         "Winsock IPX",
101         false,
102         0,
103         WIPX_Init,
104         WIPX_Shutdown,
105         WIPX_Listen,
106         WIPX_OpenSocket,
107         WIPX_CloseSocket,
108         WIPX_Connect,
109         WIPX_CheckNewConnections,
110         WIPX_Recv,
111         WIPX_Send,
112         WIPX_Read,
113         WIPX_Write,
114         WIPX_Broadcast,
115         WIPX_AddrToString,
116         WIPX_StringToAddr,
117         WIPX_GetSocketAddr,
118         WIPX_GetNameFromAddr,
119         WIPX_GetAddrFromName,
120         WIPX_AddrCompare,
121         WIPX_GetSocketPort,
122         WIPX_SetSocketPort
123         }
124
125 };
126
127 int net_numlandrivers = 2;
128