module Durian

Defined in:

durian/durian.cr
durian/resolver/fetch_list.cr
durian/version.cr

Constant Summary

AvailableRecordFlag = ["A", "AAAA", "NS", "PTR", "CNAME", "SOA", "TXT", "MX", "DNAME", "SRV"]
VERSION = "0.1.4"

Class Method Summary

Class Method Detail

def self.decode_by_resource_pointer(protocol : Protocol, io : IO, buffer : IO::Memory, maximum_depth : Int32 = 65) #

[View source]
def self.decode_chunk(buffer : IO::Memory) : Tuple(ChunkFlag, Array(String), UInt8) #

[View source]
def self.depth_decode_by_resource_pointer!(protocol : Protocol, buffer : IO::Memory, offset : Int, question : Bool = false, maximum_depth : Int32 = 65) : String | Nil #

[View source]
def self.encode_chunk_ipv4_address(ip_address, io : IO) #

[View source]
def self.limit_length_buffer(io : IO, length : Int) : IO::Memory #

[View source]
def self.limit_length_buffer!(io : IO, length : Int) : IO::Memory #

[View source]
def self.parse_chunk_address(protocol : Protocol, io : IO, buffer : IO, maximum_depth : Int32 = 65) #

[View source]
def self.parse_strict_length_address(protocol : Protocol, io : IO, length : Int, buffer : IO::Memory, maximum_depth : Int32 = 65, maximum_length : Int32 = 512) #

[View source]
def self.update_chunk_resource_pointer_position(protocol : Protocol, buffer : IO::Memory, chunk_length : UInt8, question : Bool = false) #

[View source]