C# 클래스 SIPSorcery.Net.DNSManager

파일 보기 프로젝트 열기: sipsorcery/sipsorcery

공개 메소드들

메소드 설명
Lookup ( string hostname, DNSQType queryType, int timeout, List dnsServers ) : Heijden.DNS.DNSResponse

This method will wait until either the lookup completes or the timeout is reached before returning.

Lookup ( string hostname, DNSQType queryType, int timeout, List dnsServers, bool useCache, bool async ) : Heijden.DNS.DNSResponse
LookupAsync ( string hostname ) : Heijden.DNS.DNSResponse

Does a lookup on the DNSManager's currently cached entries. If not found it returns null indicating no information is currently available on the host while at the same time queueing a lookup for the DNSManager to do a lookup. Once the lookup has been completed the entry will be stored in cache and available for subsequent lookup requests. This approach to lookups is very useful for some SIP request situations. SIP has a built in retransmit mechanism so rather than hold up the processing of a SIP request while a DNS lookup is done the request can be ignored and in the time it takes for the SIP request retransmit the lookup can be done.

LookupAsync ( string hostname, DNSQType queryType ) : Heijden.DNS.DNSResponse
SetDNSServers ( List dnsServers ) : void
Stop ( ) : void

비공개 메소드들

메소드 설명
DNSManager ( ) : System
MatchIPAddress ( string hostname ) : Heijden.DNS.DNSResponse
ProcessLookups ( ) : void
QueueLookup ( LookupRequest lookupRequest ) : void

메소드 상세

Lookup() 공개 정적인 메소드

This method will wait until either the lookup completes or the timeout is reached before returning.
public static Lookup ( string hostname, DNSQType queryType, int timeout, List dnsServers ) : Heijden.DNS.DNSResponse
hostname string The hostname of the A record to lookup in DNS.
queryType DNSQType
timeout int Timeout in seconds for the lookup.
dnsServers List
리턴 Heijden.DNS.DNSResponse

Lookup() 공개 정적인 메소드

public static Lookup ( string hostname, DNSQType queryType, int timeout, List dnsServers, bool useCache, bool async ) : Heijden.DNS.DNSResponse
hostname string
queryType DNSQType
timeout int
dnsServers List
useCache bool
async bool
리턴 Heijden.DNS.DNSResponse

LookupAsync() 공개 정적인 메소드

Does a lookup on the DNSManager's currently cached entries. If not found it returns null indicating no information is currently available on the host while at the same time queueing a lookup for the DNSManager to do a lookup. Once the lookup has been completed the entry will be stored in cache and available for subsequent lookup requests. This approach to lookups is very useful for some SIP request situations. SIP has a built in retransmit mechanism so rather than hold up the processing of a SIP request while a DNS lookup is done the request can be ignored and in the time it takes for the SIP request retransmit the lookup can be done.
public static LookupAsync ( string hostname ) : Heijden.DNS.DNSResponse
hostname string The hostname of the A record to lookup in DNS.
리턴 Heijden.DNS.DNSResponse

LookupAsync() 공개 정적인 메소드

public static LookupAsync ( string hostname, DNSQType queryType ) : Heijden.DNS.DNSResponse
hostname string
queryType DNSQType
리턴 Heijden.DNS.DNSResponse

SetDNSServers() 공개 정적인 메소드

public static SetDNSServers ( List dnsServers ) : void
dnsServers List
리턴 void

Stop() 공개 정적인 메소드

public static Stop ( ) : void
리턴 void