Exemple #1
0
        internal HeaderRequest Clone()
        {
            HeaderRequest newRH = new HeaderRequest();

            foreach (var field in typeof(HeaderRequest).GetFields())
            {
                field.SetValue(newRH, field.GetValue(this));
            }
            return(newRH);
        }
Exemple #2
0
 public OpPingRequest(HeaderRequest header)
 {
     this.header        = header.Clone();
     this.header.opcode = 0x17;
 }
Exemple #3
0
 public OpPutRequest(HeaderRequest header)
 {
     this.header        = header.Clone();
     this.header.opcode = 0x01;
 }