Show / Hide Table of Contents

Class STUNDns

Inheritance
System.Object
STUNDns
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class STUNDns

Fields

| Improve this Doc View Source

DNS_RETRIES_PER_SERVER

Declaration
public const int DNS_RETRIES_PER_SERVER = 1
Field Value
Type Description
System.Int32
| Improve this Doc View Source

DNS_TIMEOUT_SECONDS

Declaration
public const int DNS_TIMEOUT_SECONDS = 1
Field Value
Type Description
System.Int32
| Improve this Doc View Source

MDNS_TLD

Declaration
public const string MDNS_TLD = "local"
Field Value
Type Description
System.String

Properties

| Improve this Doc View Source

DnsUseTcpFallback

Set to true to attempt a DNS lookup over TCP if the UDP lookup fails.

Declaration
public static bool DnsUseTcpFallback { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

Resolve(STUNUri, Boolean)

Resolve method that can be used to request an AAAA result and fallback to a A lookup if none found.

Declaration
public static Task<IPEndPoint> Resolve(STUNUri uri, bool preferIPv6 = false)
Parameters
Type Name Description
STUNUri uri

The URI to lookup.

System.Boolean preferIPv6

True if IPv6 (AAAA record lookup) is preferred.

Returns
Type Description
System.Threading.Tasks.Task<System.Net.IPEndPoint>

An IPEndPoint or null.

Extension Methods

JSONWriter.ToJson(Object)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX