class

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

bit_fields

Inheriting the domain name structure and extending it with resource info

Source

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.

Source
data
data=(data : Bytes)
data_size
data_size=(data_size : UInt16)
flush_cache
Source
flush_cache=(flush_cache : UInt8)
flush_cache=(value : Bool)
Source
payload
Source
raw_ttl
raw_ttl=(raw_ttl : UInt32)
record_class
Source
record_class=(klass : RecordClass)
Source
record_class_raw
record_class_raw=(record_class_raw : UInt16)
ttl=(period : Time::Span)
Source
type
type=(type : Type)