C# Класс NetworkPackets.Dns.Question

Represents a Dns Question

Sadly the size of these can only be determined by parsing the entire packet.

It looks like this:

1 1 1 1 1 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | QName / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QType | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QClass | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
Наследование: Brunet.DataPacket
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
QClass DnsPacket.Classes
QName String
QNameBlob MemBlock
QType DnsPacket.Types

Открытые методы

Метод Описание
Question ( MemBlock Data, int Start ) : Brunet

Constructor when parsing a Dns Query

Question ( String QName, DnsPacket QType, DnsPacket QClass ) : Brunet

Constructor when creating a Dns Query

Описание методов

Question() публичный Метод

Constructor when parsing a Dns Query
public Question ( MemBlock Data, int Start ) : Brunet
Data MemBlock must pass in the entire packet from where the question begins, after parsing, can check Data.Length to find where next container begins.
Start int
Результат Brunet

Question() публичный Метод

Constructor when creating a Dns Query
public Question ( String QName, DnsPacket QType, DnsPacket QClass ) : Brunet
QName String the name of resource you are looking up, IP Address when QType = Ptr otherwise hostname
QType DnsPacket the type of look up to perform
QClass DnsPacket should always be IN
Результат Brunet

Описание свойств

QClass публичное свойство

the network class
public DnsPacket.Classes QClass
Результат DnsPacket.Classes

QName публичное свойство

string representation of the qname
public String QName
Результат String

QNameBlob публичное свойство

the blob format for the qname
public MemBlock QNameBlob
Результат MemBlock

QType публичное свойство

the query type
public DnsPacket.Types QType
Результат DnsPacket.Types