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