Class STUNUri
Inheritance
System.Object
STUNUri
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: SIPSorcery.dll
Syntax
Constructors
|
Improve this Doc
View Source
STUNUri(STUNSchemesEnum, String, Int32)
Declaration
public STUNUri(STUNSchemesEnum scheme, string host, int port = 3478)
Parameters
Type |
Name |
Description |
STUNSchemesEnum |
scheme |
|
System.String |
host |
|
System.Int32 |
port |
|
Fields
|
Improve this Doc
View Source
DefaultSTUNScheme
Declaration
public const STUNSchemesEnum DefaultSTUNScheme = STUNSchemesEnum.stun
Field Value
|
Improve this Doc
View Source
ExplicitPort
If the port is specified in a URI it affects the way a DNS lookup occurs.
An explicit port means to lookup the A or AAAA record directly without
checking for SRV records.
Declaration
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Host
Declaration
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Port
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Scheme
Declaration
public STUNSchemesEnum Scheme
Field Value
|
Improve this Doc
View Source
SCHEME_ADDR_SEPARATOR
Declaration
public const char SCHEME_ADDR_SEPARATOR = ':'
Field Value
Type |
Description |
System.Char |
|
|
Improve this Doc
View Source
SCHEME_MAX_LENGTH
Declaration
public const int SCHEME_MAX_LENGTH = 5
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
SCHEME_TRANSPORT_SEPARATOR
Declaration
public static readonly string[] SCHEME_TRANSPORT_SEPARATOR
Field Value
Type |
Description |
System.String[] |
|
|
Improve this Doc
View Source
SCHEME_TRANSPORT_TCP
Declaration
public const string SCHEME_TRANSPORT_TCP = "transport=tcp"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SCHEME_TRANSPORT_TLS
Declaration
public const string SCHEME_TRANSPORT_TLS = "transport=tls"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Transport
Declaration
public STUNProtocolsEnum Transport
Field Value
Properties
|
Improve this Doc
View Source
Protocol
The network protocol for this URI type.
Declaration
public ProtocolType Protocol { get; }
Property Value
Type |
Description |
System.Net.Sockets.ProtocolType |
|
Methods
|
Improve this Doc
View Source
AreEqual(STUNUri, STUNUri)
Declaration
public static bool AreEqual(STUNUri uri1, STUNUri uri2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
ParseSTUNUri(String)
Declaration
public static STUNUri ParseSTUNUri(string uri)
Parameters
Type |
Name |
Description |
System.String |
uri |
|
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
TryParse(String, out STUNUri)
Declaration
public static bool TryParse(string uriStr, out STUNUri uri)
Parameters
Type |
Name |
Description |
System.String |
uriStr |
|
STUNUri |
uri |
|
Returns
Type |
Description |
System.Boolean |
|
Operators
|
Improve this Doc
View Source
Equality(STUNUri, STUNUri)
Declaration
public static bool operator ==(STUNUri uri1, STUNUri uri2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Inequality(STUNUri, STUNUri)
Declaration
public static bool operator !=(STUNUri x, STUNUri y)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Extension Methods