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
파일 보기 프로젝트 열기: pstjuste/brunet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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