class

MDNS::RR::Option

Inherits BinData / Reference / Object

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

bit_fields

described by https://tools.ietf.org/html/rfc2671

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
code
code=(code : UInt16)
data
data=(data : Bytes)
data_size
data_size=(data_size : UInt16)
max_udp_payload
Source
max_udp_payload=(max_udp_payload : Int32)
Source