module Durian

Defined in:

durian/durian.cr
durian/socket/tcp_socket.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_address(protocol : Protocol, io : IO, buffer : IO | Nil, recursive_depth : Int32 = 0, maximum_length : Int32 = 512, maximum_recursive : Int32 = 64) #

[View source]
def self.decode_address_by_pointer(protocol : Protocol, buffer : IO, offset : Int, recursive_depth : Int32 = 0, maximum_length : Int32 = 512, maximum_recursive : Int32 = 64) #

[View source]
def self.decode_address_by_pointer(protocol : Protocol, io : IO, buffer : IO, recursive_depth : Int32 = 0, maximum_length : Int32 = 512, maximum_recursive : Int32 = 64) #

[View source]
def self.decode_resource_pointer(protocol : Protocol, io : IO, buffer : IO) #

[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, recursive_depth : Int32 = 0, maximum_length : Int32 = 512, maximum_recursive : Int32 = 64) #

[View source]
def self.parse_strict_length_address(protocol : Protocol, io : IO, length : Int, buffer : IO, recursive_depth : Int32 = 0, maximum_length : Int32 = 512, maximum_recursive : Int32 = 64) #

[View source]