class

MDNS::RR::MailExchange

Inherits MDNS::DomainNameHelpers / BinData / Reference / Object

MX record

Constants

AFTER_DESERIALIZE = [] of Nil

MX record

BEFORE_SERIALIZE = [] of Nil

MX record

ENDIAN = ["big"]

MX record

KLASS_NAME = [MDNS::RR::MailExchange]

MX record

PARTS = [{type: "basic", name: preference, 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

MX record

REMAINING = [] of Nil

MX record

Class methods

bit_fields

MX record

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
preference
preference=(preference : UInt16)
raw_domain_name
raw_domain_name=(raw_domain_name : Array(DomainNameComponent))