msgId_def.h 667 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //msgId_def.h
  2. #ifndef __MSGID_DEF_H__
  3. #define __MSGID_DEF_H__
  4. typedef enum _tagMESSAGE_ID
  5. {
  6. /*Message Request or Response*/
  7. MSG_LOGIN_REQ,
  8. MSG_LOGIN_RESP,
  9. MSG_LOGOUT_REQ,
  10. MSG_LOGOUT_RESP,
  11. MSG_USERINFO_REQ,
  12. MSG_USERINFO_RESP,
  13. MSG_CHATMESSAGE_REQ,
  14. MSG_CHATMESSAGE_RESP,
  15. } EMESSAGE_ID;
  16. typedef enum _tagLOGIN_RESULT
  17. {
  18. LOGIN_RESULT_FAILED = -1,
  19. LOGIN_RESULT_SUC = 0,
  20. LOGIN_RESULT_MULTI,
  21. LOGIN_RESULT_NAMERROR,
  22. LOGIN_RESULT_PWERROR,
  23. } ELOGIN_RESULT;
  24. typedef enum _tagUSER_STATUS
  25. {
  26. USER_STATUS_UNKNOWN = -1,
  27. USER_STATUS_ONLINE = 0,
  28. USER_STATUS_OFFLINE,
  29. USER_STATUS_BUSY,
  30. USER_STATUS_INGAME,
  31. } EUSER_STATUS;
  32. #endif //#ifndef __MSGID_DEF_H__