コード例 #1
0
 public Packet(int nSec, int typeRaw, int bodyLength, byte[] body)
 {
     _nSec       = nSec;
     _type       = (PacketBodyType)typeRaw;
     _bodyLength = bodyLength;
     _body       = body;
 }
コード例 #2
0
 protected virtual void RegisterHandler(PacketBodyType packetType, MessageHandler handler)
 {
     _map.Add(packetType, handler);
 }