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