Class UnknownAttributesAttribute
The UNKNOWN-ATTRIBUTES attribute is present only in an error response when the response code in the ERROR-CODE attribute is 420.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch.Stun
Assembly: FM.LiveSwitch.dll
Syntax
public class UnknownAttributesAttribute : Attribute
Constructors
UnknownAttributesAttribute()
Initializes a new instance of the UnknownAttributesAttribute class.
Declaration
public UnknownAttributesAttribute()
Properties
Types
Gets or sets the array of unknown attribute types.
Declaration
public int[] Types { get; set; }
Property Value
Type | Description |
---|---|
System.Int32[] |
TypeValue
Gets the type value.
Declaration
public override int TypeValue { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
Methods
GetValueLength()
Gets the length of the attribute value.
Declaration
protected override int GetValueLength()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
ReadValueFrom(DataBuffer, Int32, Int32)
Initializes a new instance of the UnknownAttributesAttribute class.
Declaration
public static UnknownAttributesAttribute ReadValueFrom(DataBuffer buffer, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
System.Int32 | offset | The offset. |
System.Int32 | length | The length. |
Returns
Type | Description |
---|---|
UnknownAttributesAttribute |
WriteValueTo(DataBuffer, Int32)
Writes the attribute value to a data buffer.
Declaration
protected override void WriteValueTo(DataBuffer buffer, int offset)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
System.Int32 | offset | The offset. |