class MDNS::Message
- MDNS::Message
- BinData
- Reference
- Object
Overview
https://tools.ietf.org/html/rfc1035#page-26
Defined in:
dns/message.crConstant Summary
-
ENDIAN =
["big"]
-
https://tools.ietf.org/html/rfc1035#page-26
-
KLASS_NAME =
[MDNS::Message]
-
https://tools.ietf.org/html/rfc1035#page-26
-
PARTS =
[{type: "basic", name: message_id, cls: UInt16, onlyif: nil, verify: nil, value: nil}, {type: "bitfield", name: 3, cls: MDNS::Message, onlyif: nil, verify: nil}, {type: "basic", name: query_count, cls: UInt16, onlyif: nil, verify: nil, value: -> do queries.size end}, {type: "basic", name: answer_count, cls: UInt16, onlyif: nil, verify: nil, value: -> do answers.size end}, {type: "basic", name: name_server_count, cls: UInt16, onlyif: nil, verify: nil, value: -> do name_servers.size end}, {type: "basic", name: additional_record_count, cls: UInt16, onlyif: nil, verify: nil, value: -> do additional.size end}, {type: "array", name: queries, cls: Query, onlyif: nil, verify: nil, length: -> do query_count end, value: nil}, {type: "array", name: answers, cls: Resource, onlyif: nil, verify: nil, length: -> do answer_count end, value: nil}, {type: "array", name: name_servers, cls: Resource, onlyif: nil, verify: nil, length: -> do name_server_count end, value: nil}, {type: "array", name: additional, cls: Resource, onlyif: nil, verify: nil, length: -> do additional_record_count end, value: nil}] of Nil
-
https://tools.ietf.org/html/rfc1035#page-26
-
REMAINING =
[] of Nil
-
https://tools.ietf.org/html/rfc1035#page-26
Class Method Summary
-
.bit_fields
https://tools.ietf.org/html/rfc1035#page-26
Instance Method Summary
- #__format__ : IO::ByteFormat
- #additional : Array(Resource)
- #additional=(additional : Array(Resource))
- #additional_record_count : UInt16
- #additional_record_count=(additional_record_count : UInt16)
- #answer_count : UInt16
- #answer_count=(answer_count : UInt16)
- #answers : Array(Resource)
- #answers=(answers : Array(Resource))
- #authoritative_answer : Bool
- #authoritative_answer=(authoritative_answer : UInt8)
- #authoritative_answer=(value : Bool)
- #is_response : Bool
- #is_response=(is_response : UInt8)
- #is_response=(value : Bool)
- #message_id : UInt16
- #message_id=(message_id : UInt16)
- #name_server_count : UInt16
- #name_server_count=(name_server_count : UInt16)
- #name_servers : Array(Resource)
- #name_servers=(name_servers : Array(Resource))
- #operation_code : OperationCode
- #operation_code=(operation_code : UInt8)
- #operation_code=(value : OperationCode)
- #queries : Array(Query)
- #queries=(queries : Array(Query))
- #query(domain : String, type : Type = Type::PTR, record_class : RecordClass = RecordClass::Internet, unicast_response : Bool = false)
- #query?
- #query_count : UInt16
- #query_count=(query_count : UInt16)
- #recursion_available : Bool
- #recursion_available=(recursion_available : UInt8)
- #recursion_available=(value : Bool)
- #recursion_desired : Bool
- #recursion_desired=(recursion_desired : UInt8)
- #recursion_desired=(value : Bool)
-
#reserved : UInt8
Should always be 0
-
#reserved=(reserved : UInt8)
Should always be 0
- #response?
- #response_code : ResponseCode
- #response_code=(response_code : UInt8)
- #response_code=(value : ResponseCode)
-
#set_io(io : IO::Memory)
This is used for lazily decompressing the domain strings
- #truncation : Bool
- #truncation=(truncation : UInt8)
- #truncation=(value : Bool)
Macro Summary
-
mdns_domain_name_component(name, onlyif = nil, verify = nil, value = nil)
https://tools.ietf.org/html/rfc1035#page-26
-
mdns_domain_name_pointer(name, onlyif = nil, verify = nil, value = nil)
https://tools.ietf.org/html/rfc1035#page-26
-
mdns_message(name, onlyif = nil, verify = nil, value = nil)
https://tools.ietf.org/html/rfc1035#page-26
-
mdns_query(name, onlyif = nil, verify = nil, value = nil)
https://tools.ietf.org/html/rfc1035#page-26
-
mdns_resource(name, onlyif = nil, verify = nil, value = nil)
https://tools.ietf.org/html/rfc1035#page-26
-
mdns_rr_character_string(name, onlyif = nil, verify = nil, value = nil)
https://tools.ietf.org/html/rfc1035#page-26
-
mdns_rr_hardware_info(name, onlyif = nil, verify = nil, value = nil)
https://tools.ietf.org/html/rfc1035#page-26
-
mdns_rr_mail_exchange(name, onlyif = nil, verify = nil, value = nil)
https://tools.ietf.org/html/rfc1035#page-26
-
mdns_rr_option(name, onlyif = nil, verify = nil, value = nil)
https://tools.ietf.org/html/rfc1035#page-26
-
mdns_rr_service(name, onlyif = nil, verify = nil, value = nil)
https://tools.ietf.org/html/rfc1035#page-26
Class Method Detail
Instance Method Detail
Macro Detail
https://tools.ietf.org/html/rfc1035#page-26
https://tools.ietf.org/html/rfc1035#page-26
https://tools.ietf.org/html/rfc1035#page-26
https://tools.ietf.org/html/rfc1035#page-26
https://tools.ietf.org/html/rfc1035#page-26
https://tools.ietf.org/html/rfc1035#page-26
https://tools.ietf.org/html/rfc1035#page-26
https://tools.ietf.org/html/rfc1035#page-26
https://tools.ietf.org/html/rfc1035#page-26
https://tools.ietf.org/html/rfc1035#page-26