ESessionCode.cs 810 B

123456789101112131415161718192021222324252627282930313233343536
  1. namespace XGame.Framework.Network
  2. {
  3. public enum ESessionCode
  4. {
  5. None = 0,
  6. StartConnect,
  7. Connected,
  8. ConnectFail,
  9. ConnectTimeout,
  10. Disconnect,
  11. DisconnectError,
  12. RecvError,
  13. SessionClose,
  14. #region 消息发送的错误码,通常都是同步返回
  15. /// <summary>
  16. /// 发送异常,异步
  17. /// </summary>
  18. SendException = 100,
  19. /// <summary>
  20. /// 网络断开/未连接
  21. /// 同步
  22. /// </summary>
  23. SendNoConnect,
  24. /// <summary>
  25. /// 消息被过滤
  26. /// 同步
  27. /// </summary>
  28. SendFilted,
  29. /// <summary>
  30. /// 发送失败
  31. /// 同步
  32. /// </summary>
  33. SendFailed,
  34. #endregion
  35. }
  36. }