null_net.c 695 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #include "../qcommon/qcommon.h"
  2. /*
  3. =============
  4. NET_StringToAdr
  5. localhost
  6. idnewt
  7. idnewt:28000
  8. 192.246.40.70
  9. 192.246.40.70:28000
  10. =============
  11. */
  12. qboolean NET_StringToAdr (char *s, netadr_t *a)
  13. {
  14. if (!strcmp (s, "localhost")) {
  15. memset (a, 0, sizeof(*a));
  16. a->type = NA_LOOPBACK;
  17. return true;
  18. }
  19. return false;
  20. }
  21. /*
  22. ==================
  23. Sys_SendPacket
  24. ==================
  25. */
  26. void Sys_SendPacket( int length, void *data, netadr_t to ) {
  27. }
  28. /*
  29. ==================
  30. Sys_GetPacket
  31. Never called by the game logic, just the system event queing
  32. ==================
  33. */
  34. qboolean Sys_GetPacket ( netadr_t *net_from, msg_t *net_message ) {
  35. return false;
  36. }