class MDNS::RR::Option

Overview

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

Defined in:

dns/resource_records/option.cr

Constant Summary

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 Method Summary

Instance Method Summary

Macro Summary

Class Method Detail

def self.bit_fields #

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


[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def code : UInt16 #

def code=(code : UInt16) #

def data : Bytes #

def data=(data : Bytes) #

def data_size : UInt16 #

def data_size=(data_size : UInt16) #

def max_udp_payload : Int32 #

[View source]
def max_udp_payload=(max_udp_payload : Int32) #

[View source]

Macro Detail

macro mdns_domain_name_component(name, onlyif = nil, verify = nil, value = nil) #

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


[View source]
macro mdns_domain_name_pointer(name, onlyif = nil, verify = nil, value = nil) #

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


[View source]
macro mdns_query(name, onlyif = nil, verify = nil, value = nil) #

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


[View source]
macro mdns_rr_option(name, onlyif = nil, verify = nil, value = nil) #

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


[View source]