public Response() { this.head = new NetPack.Header(0, 0, 0); this.body = new byte[0]; }
public Response(NetPack.Request req) { this.head = new NetPack.Header(req.head.seq, 0, req.head.opCmd); this.body = new byte[0]; }
public Request(int seq, int cmd, byte[] data) { this.head = new NetPack.Header(seq, data.Length, cmd); this.body = data; }