MDNS::DomainNameComponent
A single component of the domain name.
i.e. .com
Constants
AFTER_DESERIALIZE = [] of Nil
A single component of the domain name.
i.e. .com
BEFORE_SERIALIZE = [] of Nil
A single component of the domain name.
i.e. .com
ENDIAN = ["big"]
A single component of the domain name.
i.e. .com
KLASS_NAME = [MDNS::DomainNameComponent]
A single component of the domain name.
i.e. .com
PARTS = [{type: "bitfield", name: 0, cls: MDNS::DomainNameComponent,
onlyif: nil, verify: nil, endian: IO::ByteFormat::BigEndian}, {type: "basic", name: pointer_low, cls: UInt8, onlyif: -> do
compressed?
end, verify: nil, value: nil}, {type: "string", name: name, cls: String, onlyif: nil, verify: nil, length: -> do
compressed? ? 0 : size
end,
value: nil, encoding: nil}] of Nil
A single component of the domain name.
i.e. .com
REMAINING = [] of Nil
A single component of the domain name.
i.e. .com
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.
compressed?
Sourceindicator
indicator=(indicator : UInt8)
indicator=(value : MDNS::DomainNameComponent::Indicator)
name
name=(name : String)
pointer_low
pointer_low=(pointer_low : UInt8)
read_next?
Sourcesize
size=(size : UInt8)