blob: 1600701c4884586ddfa3d3decd90a500de5852e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
using System;
using XUtliPoolLib;
namespace XMainClient
{
public class NetEvent : INetEventData, ILuaNetEventData
{
public Protocol protocol { get; set; }
public Rpc rpc { get; set; }
public LuaNetNode node { get; set; }
public NetEvtType m_nEvtType;
public SmallBuffer<byte> m_oBuffer;
public bool m_bSuccess;
public NetErrCode m_nErrCode;
public int m_nBufferLength;
public int m_SocketID;
public long m_oTime;
public bool IsPtc = false;
public bool IsOnlyLua = false;
public NetEvent()
{
this.Reset();
}
public void Reset()
{
this.m_nEvtType = NetEvtType.Event_Connect;
this.m_oBuffer.SetInvalid();
this.m_bSuccess = true;
this.m_oTime = DateTime.Now.Ticks;
this.m_nErrCode = NetErrCode.Net_NoError;
this.m_nBufferLength = 0;
this.m_SocketID = 0;
this.IsOnlyLua = false;
this.protocol = null;
this.rpc = null;
this.node = null;
}
public void ManualReturnProtocol()
{
this.protocol = null;
}
}
}
|