class MDNS::DomainNameComponent

Overview

A single component of the domain name. i.e. .com

Defined in:

dns/domain_name.cr

Constant Summary

ENDIAN = ["big"]

A single component of the domain name. i.e. .com

KLASS_NAME = [MDNS::DomainNameComponent]

A single component of the domain name. i.e. .com

PARTS = [{type: "bitfield", name: 0, cls: MDNS::DomainNameComponent, onlyif: nil, verify: nil}, {type: "basic", name: pointer_low, cls: UInt8, onlyif: -> do compressed? end, verify: nil, value: nil}, {type: "string", name: name, cls: String, onlyif: nil, verify: nil, length: -> do compressed? ? 0 : size end, value: nil, encoding: nil}] of Nil

A single component of the domain name. i.e. .com

REMAINING = [] of Nil

A single component of the domain name. i.e. .com

Class Method Summary

Instance Method Summary

Macro Summary

Class Method Detail

def self.bit_fields #

A single component of the domain name. i.e. .com


[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def compressed? #

[View source]
def get_name(io : IO::Memory) : String #

[View source]
def indicator : Indicator #

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

def indicator=(value : Indicator) #

[View source]
def name : String #

def name=(name : String) #

def pointer_low : UInt8 #

def pointer_low=(pointer_low : UInt8) #

def read_next? #

[View source]
def size : UInt8 #

def size=(size : UInt8) #

Macro Detail

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

A single component of the domain name. i.e. .com


[View source]