protocols.h 999 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #pragma once
  2. namespace NNetlibaSocket {
  3. namespace NNetliba_v12 {
  4. const ui8 CMD_POS = 11;
  5. enum EUdpCmd {
  6. CMD_BEGIN = 1,
  7. DATA = CMD_BEGIN,
  8. DATA_SMALL, // no jumbo-packets
  9. DO_NOT_USE_1, //just reserved
  10. DO_NOT_USE_2, //just reserved
  11. CANCEL_TRANSFER,
  12. ACK,
  13. ACK_COMPLETE,
  14. ACK_CANCELED,
  15. ACK_RESEND_NOSHMEM,
  16. PING, // 10
  17. PONG, // 11
  18. PONG_IB,
  19. KILL,
  20. XS_PING, // 14
  21. XS_PONG, // 15
  22. CMD_END,
  23. };
  24. }
  25. namespace NNetliba {
  26. const ui8 CMD_POS = 8;
  27. enum EUdpCmd {
  28. DATA,
  29. ACK,
  30. ACK_COMPLETE,
  31. ACK_RESEND,
  32. DATA_SMALL, // no jumbo-packets
  33. PING,
  34. PONG,
  35. DATA_SHMEM,
  36. DATA_SMALL_SHMEM,
  37. KILL,
  38. ACK_RESEND_NOSHMEM,
  39. };
  40. }
  41. }