diff options
Diffstat (limited to 'apps/plugins/sdl/progs/quake/net_bsd.c')
-rw-r--r-- | apps/plugins/sdl/progs/quake/net_bsd.c | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/apps/plugins/sdl/progs/quake/net_bsd.c b/apps/plugins/sdl/progs/quake/net_bsd.c new file mode 100644 index 0000000000..79d62f859b --- /dev/null +++ b/apps/plugins/sdl/progs/quake/net_bsd.c | |||
@@ -0,0 +1,93 @@ | |||
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 | #include "net_udp.h" | ||
65 | |||
66 | net_landriver_t net_landrivers[MAX_NET_DRIVERS] = | ||
67 | { | ||
68 | { | ||
69 | "UDP", | ||
70 | false, | ||
71 | 0, | ||
72 | UDP_Init, | ||
73 | UDP_Shutdown, | ||
74 | UDP_Listen, | ||
75 | UDP_OpenSocket, | ||
76 | UDP_CloseSocket, | ||
77 | UDP_Connect, | ||
78 | UDP_CheckNewConnections, | ||
79 | UDP_Read, | ||
80 | UDP_Write, | ||
81 | UDP_Broadcast, | ||
82 | UDP_AddrToString, | ||
83 | UDP_StringToAddr, | ||
84 | UDP_GetSocketAddr, | ||
85 | UDP_GetNameFromAddr, | ||
86 | UDP_GetAddrFromName, | ||
87 | UDP_AddrCompare, | ||
88 | UDP_GetSocketPort, | ||
89 | UDP_SetSocketPort | ||
90 | } | ||
91 | }; | ||
92 | |||
93 | int net_numlandrivers = 1; | ||