DnsResponse ProcessError(DnsRequest request, DnsStandard.ResponseCode code) { DnsResponse errorResponse = new DnsResponse(request); errorResponse.Header.ResponseCode = code; return(errorResponse); }
/// <summary> /// Initializes an instace with the specified <paramref name="responseCode"/> /// </summary> /// <param name="responseCode">The server response code that triggered this exception.</param> public DnsServerException(DnsStandard.ResponseCode responseCode) { m_responseCode = responseCode; }
/// <summary> /// Initializes an instace with the specified <paramref name="responseCode"/> /// </summary> /// <param name="responseCode">The server response code that triggered this exception.</param> public DnsServerException(DnsStandard.ResponseCode responseCode) { m_responseCode = responseCode; }