added in_pitch_min and in_pitch_max cvars to limit pitch (default: -90 to +90)
[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 //#include "net_ser.h"
25
26 net_driver_t net_drivers[MAX_NET_DRIVERS] =
27 {
28         {
29         "Loopback",
30         false,
31         Loop_Init,
32         Loop_Listen,
33         Loop_SearchForHosts,
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_Connect,
52         Datagram_CheckNewConnections,
53         Datagram_GetMessage,
54         Datagram_SendMessage,
55         Datagram_SendUnreliableMessage,
56         Datagram_CanSendMessage,
57         Datagram_CanSendUnreliableMessage,
58         Datagram_Close,
59         Datagram_Shutdown
60         }
61 };
62
63 int net_numdrivers = 2;
64
65
66 #include "net_wins.h"
67 #include "net_wipx.h"
68
69 net_landriver_t net_landrivers[MAX_NET_DRIVERS] =
70 {
71         {
72         "Winsock TCPIP",
73         false,
74         0,
75         WINS_Init,
76         WINS_Shutdown,
77         WINS_Listen,
78         WINS_OpenSocket,
79         WINS_CloseSocket,
80         WINS_Connect,
81         WINS_CheckNewConnections,
82         WINS_Read,
83         WINS_Write,
84         WINS_Broadcast,
85         WINS_AddrToString,
86         WINS_StringToAddr,
87         WINS_GetSocketAddr,
88         WINS_GetNameFromAddr,
89         WINS_GetAddrFromName,
90         WINS_AddrCompare,
91         WINS_GetSocketPort,
92         WINS_SetSocketPort
93         },
94         {
95         "Winsock IPX",
96         false,
97         0,
98         WIPX_Init,
99         WIPX_Shutdown,
100         WIPX_Listen,
101         WIPX_OpenSocket,
102         WIPX_CloseSocket,
103         WIPX_Connect,
104         WIPX_CheckNewConnections,
105         WIPX_Read,
106         WIPX_Write,
107         WIPX_Broadcast,
108         WIPX_AddrToString,
109         WIPX_StringToAddr,
110         WIPX_GetSocketAddr,
111         WIPX_GetNameFromAddr,
112         WIPX_GetAddrFromName,
113         WIPX_AddrCompare,
114         WIPX_GetSocketPort,
115         WIPX_SetSocketPort
116         }
117
118 };
119
120 int net_numlandrivers = 2;