Class PriorityAttribute
The PRIORITY attribute indicates the priority that is to be associated with a peer reflexive candidate, should one be discovered by this check.
Inherited Members
Namespace: FM.LiveSwitch.Stun.Ice
Assembly: FM.LiveSwitch.dll
Syntax
public class PriorityAttribute : Attribute
Constructors
PriorityAttribute(Int64)
Initializes a new instance of the PriorityAttribute class.
Declaration
public PriorityAttribute(long priority)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | priority | The priority. |
Properties
Priority
Gets or sets the priority.
Declaration
public long Priority { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
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)
Initializes a new instance of the PriorityAttribute class.
Declaration
public static PriorityAttribute ReadValueFrom(DataBuffer buffer, int offset)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
System.Int32 | offset | The offset. |
Returns
Type | Description |
---|---|
PriorityAttribute |
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents this instance. |
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. |