class Durian::Packet
- Durian::Packet
- Reference
- Object
Defined in:
durian/packet.crConstructors
- .from_io!(protocol : Protocol, io : IO, buffer : IO::Memory = IO::Memory.new) : Packet
- .new(protocol : Protocol = Protocol::UDP, qrFlag : QRFlag = QRFlag::Query)
Class Method Summary
Instance Method Summary
- #add_a_query(query : String)
- #add_aaaa_query(query : String)
- #add_cname_query(query : String)
- #add_dname_query(query : String)
- #add_mx_query(query : String)
- #add_ns_query(query : String)
- #add_ptr_query(query : String)
- #add_query(query : String, flag : RecordFlag)
- #add_soa_query(query : String)
- #add_srv_query(query : String)
- #add_txt_query(query : String)
- #additional : Array(Field::Additional)
- #additional=(additional : Array(Field::Additional))
- #additionalCount : UInt16
- #additionalCount=(additionalCount : UInt16)
- #answerCount : UInt16
- #answerCount=(answerCount : UInt16)
- #answers : Array(Field::Answer)
- #answers=(answers : Array(Field::Answer))
- #authenticatedData : AuthenticatedData
- #authenticatedData=(authenticatedData : AuthenticatedData)
- #authoritativeAnswer : AuthoritativeAnswer
- #authoritativeAnswer=(authoritativeAnswer : AuthoritativeAnswer)
- #authority : Array(Field::Authority)
- #authority=(authority : Array(Field::Authority))
- #authorityCount : UInt16
- #authorityCount=(authorityCount : UInt16)
- #buffer : IO::Memory | Nil
- #buffer=(buffer : IO::Memory | Nil)
- #checkingDisabled : CheckingDisabled
- #checkingDisabled=(checkingDisabled : CheckingDisabled)
- #error : Error
- #error=(error : Error)
- #operationCode : OperationCode
- #operationCode=(operationCode : OperationCode)
- #protocol : Protocol
- #protocol=(protocol : Protocol)
- #qrFlag : QRFlag
- #qrFlag=(qrFlag : QRFlag)
- #queries : Array(Field::Question)
- #queries=(queries : Array(Field::Question))
- #questionCount : UInt16
- #questionCount=(questionCount : UInt16)
- #recursionAvailable : RecursionAvailable
- #recursionAvailable=(recursionAvailable : RecursionAvailable)
- #recursionDesired : RecursionDesired
- #recursionDesired=(recursionDesired : RecursionDesired)
- #to_io(io : IO)
- #to_slice : Bytes
- #transId : UInt16
- #transId=(transId : UInt16)
- #truncated : Truncated
- #truncated=(truncated : Truncated)
Constructor Detail
Class Method Detail
def self.from_io(protocol : Protocol, io : IO, buffer : IO::Memory = IO::Memory.new) : Packet | Nil
#