DNS::Header
Inherits Reference < Object
Constructors
from_io(io : IO, format : IO::ByteFormat) : self
Sourcenew(message_type : DNS::MessageType = MessageType::Query, op_code : DNS::OpCode = OpCode::Query, id : UInt16 = 0_u16, authoritative : Bool = false, truncation : Bool = false, recursion_desired : Bool = false, recursion_available : Bool = false, response_code : DNS::ResponseCode = ResponseCode::NoError, question_count : UInt16 = 0_u16, answer_count : UInt16 = 0_u16, name_server_count : UInt16 = 0_u16, additional_count : UInt16 = 0_u16)
SourceInstance methods
additional_count
Sourceadditional_count=(additional_count : UInt16)
Sourceanswer_count
Sourceanswer_count=(answer_count : UInt16)
Sourceauthoritative
Sourceauthoritative=(authoritative : Bool)
Sourceid
Sourceid=(id : UInt16)
Sourcemessage_type
Sourcemessage_type=(message_type : MessageType)
Sourcename_server_count
Sourcename_server_count=(name_server_count : UInt16)
Sourceop_code
Sourceop_code=(op_code : OpCode)
Sourcequestion_count
Sourcequestion_count=(question_count : UInt16)
Sourcerecursion_available
Sourcerecursion_available=(recursion_available : Bool)
Sourcerecursion_desired
Sourcerecursion_desired=(recursion_desired : Bool)
Sourceresponse_code
Sourceresponse_code=(response_code : ResponseCode)
Sourceto_io(io : IO, format : IO::ByteFormat)
Sourcetruncation
Sourcetruncation=(truncation : Bool)
Source