class Durian::Packet

Defined in:

durian/packet.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.from_io!(protocol : Protocol, io : IO, buffer : IO::Memory = IO::Memory.new) : Packet #

[View source]
def self.new(protocol : Protocol = Protocol::UDP, qrFlag : QRFlag = QRFlag::Query) #

[View source]

Class Method Detail

def self.from_io(protocol : Protocol, io : IO, buffer : IO::Memory = IO::Memory.new) : Packet | Nil #

[View source]

Instance Method Detail

def add_a_query(query : String) #

[View source]
def add_aaaa_query(query : String) #

[View source]
def add_cname_query(query : String) #

[View source]
def add_dname_query(query : String) #

[View source]
def add_mx_query(query : String) #

[View source]
def add_ns_query(query : String) #

[View source]
def add_ptr_query(query : String) #

[View source]
def add_query(query : String, flag : RecordFlag) #

[View source]
def add_soa_query(query : String) #

[View source]
def add_srv_query(query : String) #

[View source]
def add_txt_query(query : String) #

[View source]
def additional : Array(Field::Additional) #

[View source]
def additional=(additional : Array(Field::Additional)) #

[View source]
def additionalCount : UInt16 #

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

[View source]
def answerCount : UInt16 #

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

[View source]
def answers : Array(Field::Answer) #

[View source]
def answers=(answers : Array(Field::Answer)) #

[View source]
def authenticatedData : AuthenticatedData #

[View source]
def authenticatedData=(authenticatedData : AuthenticatedData) #

[View source]
def authoritativeAnswer : AuthoritativeAnswer #

[View source]
def authoritativeAnswer=(authoritativeAnswer : AuthoritativeAnswer) #

[View source]
def authority : Array(Field::Authority) #

[View source]
def authority=(authority : Array(Field::Authority)) #

[View source]
def authorityCount : UInt16 #

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

[View source]
def buffer : IO::Memory | Nil #

[View source]
def buffer=(buffer : IO::Memory | Nil) #

[View source]
def checkingDisabled : CheckingDisabled #

[View source]
def checkingDisabled=(checkingDisabled : CheckingDisabled) #

[View source]
def error : Error #

[View source]
def error=(error : Error) #

[View source]
def operationCode : OperationCode #

[View source]
def operationCode=(operationCode : OperationCode) #

[View source]
def protocol : Protocol #

[View source]
def protocol=(protocol : Protocol) #

[View source]
def qrFlag : QRFlag #

[View source]
def qrFlag=(qrFlag : QRFlag) #

[View source]
def queries : Array(Field::Question) #

[View source]
def queries=(queries : Array(Field::Question)) #

[View source]
def questionCount : UInt16 #

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

[View source]
def recursionAvailable : RecursionAvailable #

[View source]
def recursionAvailable=(recursionAvailable : RecursionAvailable) #

[View source]
def recursionDesired : RecursionDesired #

[View source]
def recursionDesired=(recursionDesired : RecursionDesired) #

[View source]
def to_io(io : IO) #

[View source]
def to_slice : Bytes #

[View source]
def transId : UInt16 #

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

[View source]
def truncated : Truncated #

[View source]
def truncated=(truncated : Truncated) #

[View source]