home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 113 / EnigmaAmiga113CD.iso / software / sviluppo / glquake_src / net_amiga.c < prev    next >
C/C++ Source or Header  |  1999-12-28  |  2KB  |  100 lines

  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.  
  21. /*
  22.  * Amiga bsdsocket.library TCP/IP network stuff
  23.  * Written by Frank Wille <frank@phoenix.owl.de>
  24.  */
  25.  
  26. #include "quakedef.h"
  27.  
  28. #include "net_loop.h"
  29. #include "net_dgrm.h"
  30.  
  31. net_driver_t net_drivers[MAX_NET_DRIVERS] =
  32. {
  33.     {
  34.     "Loopback",
  35.     false,
  36.     Loop_Init,
  37.     Loop_Listen,
  38.     Loop_SearchForHosts,
  39.     Loop_Connect,
  40.     Loop_CheckNewConnections,
  41.     Loop_GetMessage,
  42.     Loop_SendMessage,
  43.     Loop_SendUnreliableMessage,
  44.     Loop_CanSendMessage,
  45.     Loop_CanSendUnreliableMessage,
  46.     Loop_Close,
  47.     Loop_Shutdown
  48.     }
  49.     ,
  50.     {
  51.     "Datagram",
  52.     false,
  53.     Datagram_Init,
  54.     Datagram_Listen,
  55.     Datagram_SearchForHosts,
  56.     Datagram_Connect,
  57.     Datagram_CheckNewConnections,
  58.     Datagram_GetMessage,
  59.     Datagram_SendMessage,
  60.     Datagram_SendUnreliableMessage,
  61.     Datagram_CanSendMessage,
  62.     Datagram_CanSendUnreliableMessage,
  63.     Datagram_Close,
  64.     Datagram_Shutdown
  65.     }
  66. };
  67.  
  68. int net_numdrivers = 2;
  69.  
  70. #include "net_udp.h"
  71.  
  72. net_landriver_t    net_landrivers[MAX_NET_DRIVERS] =
  73. {
  74.     {
  75.     "bsdsocket.library TCP/IP",
  76.     false,
  77.     0,
  78.     UDP_Init,
  79.     UDP_Shutdown,
  80.     UDP_Listen,
  81.     UDP_OpenSocket,
  82.     UDP_CloseSocket,
  83.     UDP_Connect,
  84.     UDP_CheckNewConnections,
  85.     UDP_Read,
  86.     UDP_Write,
  87.     UDP_Broadcast,
  88.     UDP_AddrToString,
  89.     UDP_StringToAddr,
  90.     UDP_GetSocketAddr,
  91.     UDP_GetNameFromAddr,
  92.     UDP_GetAddrFromName,
  93.     UDP_AddrCompare,
  94.     UDP_GetSocketPort,
  95.     UDP_SetSocketPort
  96.     }
  97. };
  98.  
  99. int net_numlandrivers = 1;
  100.