operation.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package model
  2. const (
  3. // OpHandshake handshake
  4. OpHandshake = int32(0)
  5. // OpHandshakeReply handshake reply
  6. OpHandshakeReply = int32(1)
  7. // OpHeartbeat heartbeat
  8. OpHeartbeat = int32(2)
  9. // OpHeartbeatReply heartbeat reply
  10. OpHeartbeatReply = int32(3)
  11. // OpSendMsg send message.
  12. OpSendMsg = int32(4)
  13. // OpSendMsgReply send message reply
  14. OpSendMsgReply = int32(5)
  15. // OpDisconnectReply disconnect reply
  16. OpDisconnectReply = int32(6)
  17. // OpAuth auth connnect
  18. OpAuth = int32(7)
  19. // OpAuthReply auth connect reply
  20. OpAuthReply = int32(8)
  21. // OpRaw raw message
  22. OpRaw = int32(9)
  23. // OpProtoReady proto ready
  24. OpProtoReady = int32(10)
  25. // OpProtoFinish proto finish
  26. OpProtoFinish = int32(11)
  27. // OpChangeRoom change room
  28. OpChangeRoom = int32(12)
  29. // OpChangeRoomReply change room reply
  30. OpChangeRoomReply = int32(13)
  31. // OpRegister register operation
  32. OpRegister = int32(14)
  33. // OpRegisterReply register operation
  34. OpRegisterReply = int32(15)
  35. // OpUnregister unregister operation
  36. OpUnregister = int32(16)
  37. // OpUnregisterReply unregister operation reply
  38. OpUnregisterReply = int32(17)
  39. // MinBusinessOp min business operation
  40. MinBusinessOp = 1000
  41. // MaxBusinessOp max business operation
  42. MaxBusinessOp = 10000
  43. )