protocols.h 930 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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,
  17. PONG,
  18. PONG_IB,
  19. KILL,
  20. CMD_END,
  21. };
  22. }
  23. namespace NNetliba {
  24. const ui8 CMD_POS = 8;
  25. enum EUdpCmd {
  26. DATA,
  27. ACK,
  28. ACK_COMPLETE,
  29. ACK_RESEND,
  30. DATA_SMALL, // no jumbo-packets
  31. PING,
  32. PONG,
  33. DATA_SHMEM,
  34. DATA_SMALL_SHMEM,
  35. KILL,
  36. ACK_RESEND_NOSHMEM,
  37. };
  38. }
  39. }