代码拉取完成,页面将自动刷新
package dns
// All dns protocol errors are defined here.
type Error interface {
error
ResponseError() string
}
type DNSError struct {
Err string
}
func (e *DNSError) Error() string {
if e == nil {
return "<nil>"
}
return e.Err
}
func (e *DNSError) ResponseError() string {
return "Response: " + e.Error()
}
// Messages
var (
NonDnsMsg = &DNSError{Err: "Message's data could not be decoded as DNS"}
ZeroLengthMsg = &DNSError{Err: "Message's length was set to zero"}
UnexpectedLengthMsg = &DNSError{Err: "Unexpected message data length"}
DuplicateQueryMsg = &DNSError{Err: "Another query with the same DNS ID from this client " +
"was received so this query was closed without receiving a response"}
IncompleteMsg = &DNSError{Err: "Message's data is incomplete"}
NoResponse = &DNSError{Err: "No response to this query was received"}
)
// TCP responses
var (
OrphanedResponse = &DNSError{Err: "Response: received without an associated Query"}
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。