MDNS::Resource
Inherits MDNS::DomainNamePointer / MDNS::DomainNameHelpers / BinData / Reference / Object
Inheriting the domain name structure and extending it with resource info
Constants
AFTER_DESERIALIZE = [] of Nil
Inheriting the domain name structure and extending it with resource info
BEFORE_SERIALIZE = [] of Nil
Inheriting the domain name structure and extending it with resource info
ENDIAN = ["big"]
Inheriting the domain name structure and extending it with resource info
KLASS_NAME = [MDNS::Resource]
Inheriting the domain name structure and extending it with resource info
PARTS = [{type: "enum", name: type, cls: UInt16,
onlyif: nil, verify: nil, value: nil, enum_type: Type}, {type: "bitfield", name: 2, cls: MDNS::Resource,
onlyif: nil, verify: nil, endian: IO::ByteFormat::BigEndian}, {type: "basic", name: raw_ttl, cls: UInt32, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: data_size, cls: UInt16, onlyif: nil, verify: nil, value: -> do
data.size.to_u8
end}, {type: "bytes", name: data, cls: Bytes, onlyif: nil, verify: nil, length: -> do
data_size
end,
value: nil}] of Nil
Inheriting the domain name structure and extending it with resource info
REMAINING = [] of Nil
Inheriting the domain name structure and extending it with resource info
Class methods
Instance methods
__format__
A group or bit_field captures the endianness at its declaration point, so
declaring endian after one would silently leave it system-endian. Fail loudly.
data
data=(data : Bytes)
data_size
data_size=(data_size : UInt16)
flush_cache
Sourceflush_cache=(flush_cache : UInt8)
payload
Sourceraw_ttl
raw_ttl=(raw_ttl : UInt32)
record_class
Sourcerecord_class=(klass : RecordClass)
Sourcerecord_class_raw
record_class_raw=(record_class_raw : UInt16)
ttl
Sourcettl=(period : Time::Span)
Sourcetype
type=(type : Type)