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. More...
Instance Methods | |
(NSString *) | - description |
Returns a string that represents this instance. More... | |
(int) | - getValueLength |
Gets the length of the value. More... | |
(instancetype) | - initWithNumRequests: |
Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class. More... | |
(instancetype) | - initWithNumRequests:numResponses: |
Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class. More... | |
(int) | - numRequests |
Gets the number of times the request is transmitted with the same transaction ID to the server. More... | |
(int) | - numResponses |
Gets the number of times a response with the same transaction ID is sent from the server. More... | |
(void) | - setNumRequests: |
Sets the number of times the request is transmitted with the same transaction ID to the server. More... | |
(void) | - setNumResponses: |
Sets the number of times a response with the same transaction ID is sent from the server. More... | |
(int) | - typeValue |
Gets the type value. More... | |
(void) | - writeValueToWithBuffer:offset: |
Writes the value to. More... | |
Instance Methods inherited from FMLiveSwitchStunAttribute | |
(int) | - getLength |
Gets the length of the attribute, including header and padding. More... | |
(int) | - getPaddingLengthWithValueLength: |
Gets the length of the padding. More... | |
(instancetype) | - init |
(void) | - writeIPAddressWithBuffer:offset:addressType:ipAddress: |
Writes an IP address. More... | |
(void) | - writePortWithBuffer:offset:port: |
Writes a port. More... | |
(void) | - writeToWithBuffer:offset: |
Writes the attribute to a data buffer. More... | |
(void) | - writeToWithBuffer:offset:offsetPlus: |
Writes the attribute to a data buffer. More... | |
(void) | - writeXorIPAddressWithBuffer:offset:addressType:ipAddress:transactionId: |
Writes an XOR'd IP address. More... | |
(void) | - writeXorPortWithBuffer:offset:port:transactionId: |
Writes an XOR'd port. More... | |
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.
- (NSString*) description |
Returns a string that represents this instance.
- (int) getValueLength |
Gets the length of the value.
Implements FMLiveSwitchStunAttribute.
- (instancetype) initWithNumRequests: | (int) | numRequests |
Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class.
numRequests | The number of times the request is transmitted with the same transaction ID to the server. |
- (instancetype) initWithNumRequests: | (int) | numRequests | |
numResponses: | (int) | numResponses | |
Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class.
numRequests | The number of times the request is transmitted with the same transaction ID to the server. |
numResponses | The number of times a response with the same transaction ID is sent from the server. |
- (int) numRequests |
Gets the number of times the request is transmitted with the same transaction ID to the server.
- (int) numResponses |
Gets 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.
+ (FMLiveSwitchStunTransactionTransmitCounterAttribute*) readValueFromWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
offset: | (int) | offset | |
Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class.
buffer | The buffer. |
offset | The offset. |
- (void) setNumRequests: | (int) | value |
Sets the number of times the request is transmitted with the same transaction ID to the server.
- (void) setNumResponses: | (int) | value |
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.
+ (FMLiveSwitchStunTransactionTransmitCounterAttribute*) transactionTransmitCounterAttributeWithNumRequests: | (int) | numRequests |
Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class.
numRequests | The number of times the request is transmitted with the same transaction ID to the server. |
+ (FMLiveSwitchStunTransactionTransmitCounterAttribute*) transactionTransmitCounterAttributeWithNumRequests: | (int) | numRequests | |
numResponses: | (int) | numResponses | |
Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class.
numRequests | The number of times the request is transmitted with the same transaction ID to the server. |
numResponses | The number of times a response with the same transaction ID is sent from the server. |
- (int) typeValue |
Gets the type value.
Implements FMLiveSwitchStunAttribute.
- (void) writeValueToWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
offset: | (int) | offset | |
Writes the value to.
buffer | The buffer. |
offset | The offset. |
Implements FMLiveSwitchStunAttribute.