MDNS::RR::Option
described by https://tools.ietf.org/html/rfc2671
Constants
AFTER_DESERIALIZE = [] of Nil
described by https://tools.ietf.org/html/rfc2671
BEFORE_SERIALIZE = [] of Nil
described by https://tools.ietf.org/html/rfc2671
ENDIAN = ["big"]
described by https://tools.ietf.org/html/rfc2671
KLASS_NAME = [MDNS::RR::Option]
described by https://tools.ietf.org/html/rfc2671
PARTS = [{type: "basic", name: code, cls: UInt16, 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
described by https://tools.ietf.org/html/rfc2671
REMAINING = [] of Nil
described by https://tools.ietf.org/html/rfc2671
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.
code
code=(code : UInt16)
data
data=(data : Bytes)
data_size
data_size=(data_size : UInt16)
max_udp_payload
Source