Class DnsQuestion
- Namespace
- AppleTvControlLibrary.Discovery.Dns
- Assembly
- AppleTvControlLibrary.Discovery.dll
Represents a DNS query.
public sealed class DnsQuestion
- Inheritance
-
DnsQuestion
- Inherited Members
Remarks
Initializes a new instance of the DnsQuestion class.
Constructors
DnsQuestion(string, QueryType, ushort)
Represents a DNS query.
public DnsQuestion(string qname, QueryType qtype, ushort qclass)
Parameters
Remarks
Initializes a new instance of the DnsQuestion class.
Properties
QClass
Gets the query class.
public ushort QClass { get; }
Property Value
QName
Gets the query name.
public string QName { get; }
Property Value
QType
Gets the query type.
public QueryType QType { get; }
Property Value
Methods
Pack()
Encodes the question data as needed for a DNS query or response.
public byte[] Pack()
Returns
- byte[]
The packed question bytes.
UnpackRead(DnsBufferReader)
Creates a DnsQuestion from a data stream.
public static DnsQuestion UnpackRead(DnsBufferReader buffer)
Parameters
bufferDnsBufferReaderThe buffer to read from.
Returns
- DnsQuestion
The parsed question.