mac_net.c 726 B

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