class MDNS::Resource

Defined in:

dns/query_resource.cr

Constant Summary

ENDIAN = ["big"]
KLASS_NAME = [MDNS::Resource]
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
REMAINING = [] of Nil

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from class MDNS::DomainNamePointer

__format__ : IO::ByteFormat __format__, domain_name(query : IO::Memory)
domain_name
domain_name
, domain_name=(name) domain_name=, 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

Class Method Detail

def self.bit_fields #

[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def address : String #

[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 klass : Klass #

[View source]
def klass=(klass : UInt16) #

def klass=(value : Klass) #

[View source]
def raw_ttl : UInt32 #

def raw_ttl=(raw_ttl : UInt32) #

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) #

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

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

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

[View source]