MDNS::RR::Service
Inherits MDNS::DomainNameHelpers / BinData / Reference / Object
SRV details
Constants
AFTER_DESERIALIZE = [] of Nil
SRV details
BEFORE_SERIALIZE = [] of Nil
SRV details
ENDIAN = ["big"]
SRV details
KLASS_NAME = [MDNS::RR::Service]
SRV details
PARTS = [{type: "basic", name: priority, cls: UInt16, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: weight, cls: UInt16, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: port, cls: UInt16, onlyif: nil, verify: nil, value: nil}, {type: "variable_array", name: raw_domain_name, cls: DomainNameComponent,
onlyif: nil, verify: nil, read_next: -> do
if name = raw_domain_name[-1]?
name.read_next?
else
true
end
end,
value: nil}] of Nil
SRV details
REMAINING = [] of Nil
SRV details
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.
port
port=(port : UInt16)
priority
priority=(priority : UInt16)
raw_domain_name
weight
weight=(weight : UInt16)