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