Show / Hide Table of Contents

Class STUNAddressAttribute

Inheritance
System.Object
STUNAttribute
STUNAddressAttributeBase
STUNAddressAttribute
Inherited Members
STUNAddressAttributeBase.ADDRESS_ATTRIBUTE_LENGTH
STUNAddressAttributeBase.ADDRESS_ATTRIBUTE_IPV4_LENGTH
STUNAddressAttributeBase.ADDRESS_ATTRIBUTE_IPV6_LENGTH
STUNAddressAttributeBase.AddressAttributeLength
STUNAddressAttributeBase.TransactionId
STUNAddressAttributeBase.Family
STUNAddressAttributeBase.Port
STUNAddressAttributeBase.Address
STUNAddressAttributeBase.PaddedLength
STUNAttribute.STUNATTRIBUTE_HEADER_LENGTH
STUNAttribute.AttributeType
STUNAttribute.Value
STUNAttribute.ParseMessageAttributes(Byte[], Int32, Int32)
STUNAttribute.ParseMessageAttributes(Byte[], Int32, Int32, STUNHeader)
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)
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class STUNAddressAttribute : STUNAddressAttributeBase
Remarks

There's no proper explanation of why this STUN attribute was obsoleted. My guess is to favour using the XOR Maoped Address attribute BUT that does not help when a STUN server provides this atype of address attribute. It will still need to be parsed and understood, Reverted this obsoletion on 13 Nov 2024 AC.

Constructors

| Improve this Doc View Source

STUNAddressAttribute(STUNAttributeTypesEnum, Byte[])

Parses an IPv4 Address attribute.

Declaration
public STUNAddressAttribute(STUNAttributeTypesEnum attributeType, byte[] attributeValue)
Parameters
Type Name Description
STUNAttributeTypesEnum attributeType
System.Byte[] attributeValue
Remarks

There's no proper explanation of why this STUN attribute was obsoleted. My guess is to favour using the XOR Maoped Address attribute BUT that does not help when a STUN server provides this atype of address attribute. It will still need to be parsed and understood, Reverted this obsoletion on 13 Nov 2024 AC.

| Improve this Doc View Source

STUNAddressAttribute(STUNAttributeTypesEnum, Int32, IPAddress)

Parses an IPv4 Address attribute.

Declaration
public STUNAddressAttribute(STUNAttributeTypesEnum attributeType, int port, IPAddress address)
Parameters
Type Name Description
STUNAttributeTypesEnum attributeType
System.Int32 port
System.Net.IPAddress address
Remarks

There's no proper explanation of why this STUN attribute was obsoleted. My guess is to favour using the XOR Maoped Address attribute BUT that does not help when a STUN server provides this atype of address attribute. It will still need to be parsed and understood, Reverted this obsoletion on 13 Nov 2024 AC.

| Improve this Doc View Source

STUNAddressAttribute(Byte[])

Parses an IPv4 Address attribute.

Declaration
public STUNAddressAttribute(byte[] attributeValue)
Parameters
Type Name Description
System.Byte[] attributeValue
Remarks

There's no proper explanation of why this STUN attribute was obsoleted. My guess is to favour using the XOR Maoped Address attribute BUT that does not help when a STUN server provides this atype of address attribute. It will still need to be parsed and understood, Reverted this obsoletion on 13 Nov 2024 AC.

Methods

| Improve this Doc View Source

ToByteBuffer(Byte[], Int32)

Declaration
public override int ToByteBuffer(byte[] buffer, int startIndex)
Parameters
Type Name Description
System.Byte[] buffer
System.Int32 startIndex
Returns
Type Description
System.Int32
Overrides
STUNAttribute.ToByteBuffer(Byte[], Int32)
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
STUNAttribute.ToString()

Extension Methods

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