SIPSorcery.Net.DNSManager.LookupAsync C# (CSharp) Méthode

LookupAsync() public static méthode

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.
Résultat Heijden.DNS.DNSResponse
        public static DNSResponse LookupAsync(string hostname)
        {
            return Lookup(hostname, DNSQType.A, DEFAULT_A_RECORD_DNS_TIMEOUT, null, true, true);
        }

Same methods

DNSManager::LookupAsync ( string hostname, DNSQType queryType ) : Heijden.DNS.DNSResponse