class MDNS::Resource

Overview

Inheriting the domain name structure and extending it with resource info

Defined in:

dns/resource.cr

Constant Summary

ENDIAN = ["big"]

Inheriting the domain name structure and extending it with resource info

KLASS_NAME = [MDNS::Resource]

Inheriting the domain name structure and extending it with resource info

PARTS = [{type: "enum", name: type, cls: UInt16, onlyif: nil, verify: nil, value: nil, encoding: Type}, {type: "bitfield", name: 2, cls: MDNS::Resource, onlyif: nil, verify: nil}, {type: "basic", name: raw_ttl, cls: UInt32, 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

Inheriting the domain name structure and extending it with resource info

REMAINING = [] of Nil

Inheriting the domain name structure and extending it with resource info

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from class MDNS::DomainNamePointer

__format__ : IO::ByteFormat __format__, raw_domain_name : Array(DomainNameComponent) raw_domain_name, raw_domain_name=(raw_domain_name : Array(DomainNameComponent)) raw_domain_name=

Class methods inherited from class MDNS::DomainNamePointer

bit_fields bit_fields

Instance methods inherited from module MDNS::DomainNameHelpers

domain_name domain_name, domain_name=(name) domain_name=, original_io : IO::Memory | Nil original_io, original_io=(original_io : IO::Memory | Nil) original_io=, set_io(io : IO::Memory | Nil) set_io

Class Method Detail

def self.bit_fields #

Inheriting the domain name structure and extending it with resource info


[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def data : Bytes #

def data=(data : Bytes) #

def data_size : UInt16 #

def data_size=(data_size : UInt16) #

def flush_cache : Bool #

[View source]
def flush_cache=(flush_cache : UInt8) #

def flush_cache=(value : Bool) #

[View source]
def payload #

[View source]
def raw_ttl : UInt32 #

def raw_ttl=(raw_ttl : UInt32) #

def record_class #

[View source]
def record_class=(klass : RecordClass) #

[View source]
def record_class_raw : UInt16 #

def record_class_raw=(record_class_raw : UInt16) #

def ttl #

[View source]
def ttl=(period : Time::Span) #

[View source]
def type : Type #

def type=(type : Type) #

Macro Detail

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

Inheriting the domain name structure and extending it with resource info


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

Inheriting the domain name structure and extending it with resource info


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

Inheriting the domain name structure and extending it with resource info


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

Inheriting the domain name structure and extending it with resource info


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

Inheriting the domain name structure and extending it with resource info


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

Inheriting the domain name structure and extending it with resource info


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

Inheriting the domain name structure and extending it with resource info


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

Inheriting the domain name structure and extending it with resource info


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

Inheriting the domain name structure and extending it with resource info


[View source]