Class TransactionTransmitCounterAttribute
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reserved(Padding) | Req | Resp | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Transaction Transmit Counter comprehension-optional STUN attribute.
Inherited Members
Namespace: FM.LiveSwitch.Stun
Assembly: FM.LiveSwitch.dll
Syntax
public class TransactionTransmitCounterAttribute : Attribute
Constructors
TransactionTransmitCounterAttribute(Int32)
Initializes a new instance of the TransactionTransmitCounterAttribute class.
Declaration
public TransactionTransmitCounterAttribute(int numRequests)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | numRequests | The number of times the request is transmitted with the same transaction ID to the server. |
TransactionTransmitCounterAttribute(Int32, Int32)
Initializes a new instance of the TransactionTransmitCounterAttribute class.
Declaration
public TransactionTransmitCounterAttribute(int numRequests, int numResponses)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | numRequests | The number of times the request is transmitted with the same transaction ID to the server. |
System.Int32 | numResponses | The number of times a response with the same transaction ID is sent from the server. |
Properties
NumRequests
Gets or sets the number of times the request is transmitted with the same transaction ID to the server.
Declaration
public int NumRequests { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NumResponses
Gets or sets the number of times a response with the same transaction ID is sent from the server. MUST be set to zero in requests and ignored by the receiver.
Declaration
public int NumResponses { 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 value.
Declaration
protected override int GetValueLength()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
ReadValueFrom(DataBuffer, Int32)
Initializes a new instance of the TransactionTransmitCounterAttribute class.
Declaration
public static TransactionTransmitCounterAttribute ReadValueFrom(DataBuffer buffer, int offset)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
System.Int32 | offset | The offset. |
Returns
Type | Description |
---|---|
TransactionTransmitCounterAttribute |
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents this instance. |
Overrides
WriteValueTo(DataBuffer, Int32)
Writes the value to.
Declaration
protected override void WriteValueTo(DataBuffer buffer, int offset)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | buffer | The buffer. |
System.Int32 | offset | The offset. |