12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #include "quakedef.h"
- #include "net_loop.h"
- #include "net_dgrm.h"
- net_driver_t net_drivers[MAX_NET_DRIVERS] =
- {
- {
- "Loopback",
- false,
- Loop_Init,
- Loop_Listen,
- Loop_SearchForHosts,
- Loop_Connect,
- Loop_CheckNewConnections,
- Loop_GetMessage,
- Loop_SendMessage,
- Loop_SendUnreliableMessage,
- Loop_CanSendMessage,
- Loop_CanSendUnreliableMessage,
- Loop_Close,
- Loop_Shutdown
- }
- ,
- {
- "Datagram",
- false,
- Datagram_Init,
- Datagram_Listen,
- Datagram_SearchForHosts,
- Datagram_Connect,
- Datagram_CheckNewConnections,
- Datagram_GetMessage,
- Datagram_SendMessage,
- Datagram_SendUnreliableMessage,
- Datagram_CanSendMessage,
- Datagram_CanSendUnreliableMessage,
- Datagram_Close,
- Datagram_Shutdown
- }
- };
- int net_numdrivers = 2;
- #include "net_udp.h"
- net_landriver_t net_landrivers[MAX_NET_DRIVERS] =
- {
- {
- "UDP",
- false,
- 0,
- UDP_Init,
- UDP_Shutdown,
- UDP_Listen,
- UDP_OpenSocket,
- UDP_CloseSocket,
- UDP_Connect,
- UDP_CheckNewConnections,
- UDP_Read,
- UDP_Write,
- UDP_Broadcast,
- UDP_AddrToString,
- UDP_StringToAddr,
- UDP_GetSocketAddr,
- UDP_GetNameFromAddr,
- UDP_GetAddrFromName,
- UDP_AddrCompare,
- UDP_GetSocketPort,
- UDP_SetSocketPort
- }
- };
- int net_numlandrivers = 1;
|