Beispiel #1
0
 public DefaultDnsResponse(int id, DnsOpCode opCode, DnsResponseCode code)
     : base(id, opCode)
 {
     Code = code ?? throw new ArgumentNullException(nameof(code));
 }
 public DatagramDnsResponse(EndPoint sender, EndPoint recipient, int id, DnsOpCode opCode, DnsResponseCode responseCode)
     : base(id, opCode, responseCode)
 {
     Sender    = sender ?? throw new ArgumentNullException(nameof(sender));
     Recipient = recipient ?? throw new ArgumentNullException(nameof(recipient));
 }