null_net.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 "../qcommon/qcommon.h"
  19. /*
  20. =============
  21. NET_StringToAdr
  22. localhost
  23. idnewt
  24. idnewt:28000
  25. 192.246.40.70
  26. 192.246.40.70:28000
  27. =============
  28. */
  29. qboolean NET_StringToAdr (char *s, netadr_t *a)
  30. {
  31. if (!strcmp (s, "localhost")) {
  32. memset (a, 0, sizeof(*a));
  33. a->type = NA_LOOPBACK;
  34. return true;
  35. }
  36. return false;
  37. }
  38. /*
  39. ==================
  40. Sys_SendPacket
  41. ==================
  42. */
  43. void Sys_SendPacket( int length, void *data, netadr_t to ) {
  44. }
  45. /*
  46. ==================
  47. Sys_GetPacket
  48. Never called by the game logic, just the system event queing
  49. ==================
  50. */
  51. qboolean Sys_GetPacket ( netadr_t *net_from, msg_t *net_message ) {
  52. return false;
  53. }