mac_net.c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. #include "../game/q_shared.h"
  19. #include "../qcommon/qcommon.h"
  20. /*
  21. =============
  22. NET_StringToAdr
  23. localhost
  24. idnewt
  25. idnewt:28000
  26. 192.246.40.70
  27. 192.246.40.70:28000
  28. =============
  29. */
  30. qboolean NET_StringToAdr (char *s, netadr_t *a)
  31. {
  32. if (!strcmp (s, "localhost")) {
  33. memset (a, 0, sizeof(*a));
  34. a->type = NA_LOOPBACK;
  35. return true;
  36. }
  37. return false;
  38. }
  39. /*
  40. ==================
  41. Sys_SendPacket
  42. ==================
  43. */
  44. void Sys_SendPacket( int length, void *data, netadr_t to ) {
  45. }
  46. /*
  47. ==================
  48. Sys_GetPacket
  49. Never called by the game logic, just the system event queing
  50. ==================
  51. */
  52. qboolean Sys_GetPacket ( netadr_t *net_from, msg_t *net_message ) {
  53. return false;
  54. }