12345678910111213141516171819202122232425262728293031323334 |
- using System.Net.Sockets;
- namespace XGame.Framework.Network
- {
- public struct SessionEventArgs
- {
- public ESessionCode code;
- public bool isSocketError;
- public SocketError socketError;
- /// <summary>
- /// Webgl²ÅÓÐ
- /// </summary>
- public int websocketCode;
- public string errorMsg;
- }
- public struct RequestEventArgs
- {
- public int seqId;
- public int protoId;
- public bool isFilter;
- public ESessionCode code;
- }
- public struct ResponseEventArgs
- {
- public long errorCode;
- public string info;
- public int seqId;
- public int protoId;
- public override string ToString()
- {
- return $"<Id:{protoId} seq:{seqId} code:{errorCode} info:{info}>";
- }
- }
- }
|