C# 클래스 LumiSoft.Net.Dns.Client.DnsCache

This class implements dns query cache.
파일 보기 프로젝트 열기: jeske/StepsDB-alpha 1 사용 예제들

공개 메소드들

메소드 설명
AddToCache ( string qname, int qtype, DnsServerResponse answers ) : void

Adds dns records to cache. If old entry exists, it is replaced.

ClearCache ( ) : void

Clears DNS cache.

DeSerializeCache ( byte cacheData ) : void

DeSerializes stored cache.

GetFromCache ( string qname, int qtype ) : DnsServerResponse

Tries to get dns records from cache, if any.

SerializeCache ( ) : byte[]

Serializes current cache.

비공개 메소드들

메소드 설명
DnsCache ( ) : System

Default constructor.

메소드 상세

AddToCache() 공개 정적인 메소드

Adds dns records to cache. If old entry exists, it is replaced.
public static AddToCache ( string qname, int qtype, DnsServerResponse answers ) : void
qname string
qtype int
answers DnsServerResponse
리턴 void

ClearCache() 공개 정적인 메소드

Clears DNS cache.
public static ClearCache ( ) : void
리턴 void

DeSerializeCache() 공개 정적인 메소드

DeSerializes stored cache.
public static DeSerializeCache ( byte cacheData ) : void
cacheData byte This value must be DnsCache.SerializeCache() method value.
리턴 void

GetFromCache() 공개 정적인 메소드

Tries to get dns records from cache, if any.
public static GetFromCache ( string qname, int qtype ) : DnsServerResponse
qname string
qtype int
리턴 DnsServerResponse

SerializeCache() 공개 정적인 메소드

Serializes current cache.
public static SerializeCache ( ) : byte[]
리턴 byte[]