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

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