C# 클래스 DnDns.Records.DnsRecordBase

Handles a basic Dns record From RFC 1035: 3.2.1. Format All RRs have the same top level format shown below: 1 1 1 1 1 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | / / / NAME / | | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | TYPE | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | CLASS | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | TTL | | | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | RDLENGTH | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| / RDATA / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ where: NAME an owner name, i.e., the name of the node to which this resource record pertains. TYPE two octets containing one of the RR TYPE codes. CLASS two octets containing one of the RR CLASS codes. TTL a 32 bit signed integer that specifies the time interval that the resource record may be cached before the source of the information should again be consulted. Zero values are interpreted to mean that the RR can only be used for the transaction in progress, and should not be cached. For example, SOA records are always distributed with a zero TTL to prohibit caching. Zero values can also be used for extremely volatile data. RDLENGTH an unsigned 16 bit integer that specifies the length in octets of the RDATA field. RDATA a variable length string of octets that describes the resource. The format of this information varies according to the TYPE and CLASS of the resource record.
상속: IDnsRecord
파일 보기 프로젝트 열기: RELOAD-NET/RELOAD.NET 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_answer string
_dnsHeader RecordHeader
_errorMsg string

공개 메소드들

메소드 설명
ParseRecord ( MemoryStream &ms ) : void
ToString ( ) : string

비공개 메소드들

메소드 설명
DnsRecordBase ( ) : System
DnsRecordBase ( RecordHeader dnsHeader ) : System
ParseName ( MemoryStream &ms ) : string
ParseText ( MemoryStream &ms ) : string

메소드 상세

ParseRecord() 공개 메소드

public ParseRecord ( MemoryStream &ms ) : void
ms System.IO.MemoryStream
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

프로퍼티 상세

_answer 보호되어 있는 프로퍼티

protected string _answer
리턴 string

_dnsHeader 보호되어 있는 프로퍼티

protected RecordHeader,DnDns.Records _dnsHeader
리턴 RecordHeader

_errorMsg 보호되어 있는 프로퍼티

protected string _errorMsg
리턴 string