Class STUNAddressAttribute
Inherited Members
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 SourceSTUNAddressAttribute(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.
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.
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 SourceToByteBuffer(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
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |