FMLiveSwitchStunTransactionTransmitCounterAttribute Class Reference

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...
 

Class Methods

(FMLiveSwitchStunTransactionTransmitCounterAttribute *) + readValueFromWithBuffer:offset:
 Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class. More...
 
(FMLiveSwitchStunTransactionTransmitCounterAttribute *) + transactionTransmitCounterAttributeWithNumRequests:
 Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class. More...
 
(FMLiveSwitchStunTransactionTransmitCounterAttribute *) + transactionTransmitCounterAttributeWithNumRequests:numResponses:
 Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class. More...
 
- Class Methods inherited from FMLiveSwitchStunAttribute
(int) + alternateServerType
 Gets the ALTERNATE-SERVER type. More...
 
(FMLiveSwitchStunAttribute *) + attribute
 
(int) + channelNumberType
 Gets the CHANNEL-NUMBER type. More...
 
(int) + connectionIdType
 Gets the CONNECTION-ID type. More...
 
(int) + controlledType
 Gets the CONTROLLED type. More...
 
(int) + controllingType
 Gets the CONTROLLING type. More...
 
(int) + dataType
 Gets the DATA type. More...
 
(int) + dontFragmentType
 Gets the DONT-FRAGMENT type. More...
 
(int) + errorCodeType
 Gets the ERROR-CODE type. More...
 
(int) + evenPortType
 Gets the EVEN-PORT type. More...
 
(int) + fingerprintType
 Gets the FINGERPRINT type. More...
 
(int) + lifetimeType
 Gets the LIFETIME type. More...
 
(int) + mappedAddressType
 Gets the MAPPED-ADDRESS type. More...
 
(int) + messageIntegrityType
 Gets the MESSAGE-INTEGRITY type. More...
 
(int) + nextLengthWithBuffer:offset:
 Reads the length of the next attribute from a data buffer, including header and padding. More...
 
(int) + nonceType
 Gets the NONCE type. More...
 
(int) + priorityType
 Gets the PRIORITY type. More...
 
(FMLiveSwitchAddressType) + readAddressTypeWithBuffer:offset:
 Reads an address type. More...
 
(FMLiveSwitchStunAttribute *) + readFromWithBuffer:offset:offsetPlus:transactionId:messageBuffer:
 Reads an FMLiveSwitchStunAttribute from a data buffer. More...
 
(FMLiveSwitchStunAttribute *) + readFromWithBuffer:offset:transactionId:messageBuffer:
 Reads an FMLiveSwitchStunAttribute from a data buffer. More...
 
(NSString *) + readIPAddressWithBuffer:offset:addressType:
 Reads an IP address. More...
 
(int) + readPortWithBuffer:offset:
 Reads a port. More...
 
(NSString *) + readXorIPAddressWithBuffer:offset:addressType:transactionId:
 Reads an XOR'd IP address. More...
 
(int) + readXorPortWithBuffer:offset:transactionId:
 Reads an XOR'd port. More...
 
(int) + realmType
 Gets the REALM type. More...
 
(int) + requestedAddressFamilyType
 Gets the REQUESTED-ADDRESS-FAMILY type. More...
 
(int) + requestedTransportType
 Gets the REQUESTED-TRANSPORT type. More...
 
(int) + reservationTokenType
 Gets the RESERVATION-TOKEN type. More...
 
(int) + softwareType
 Gets the SOFTWARE type. More...
 
(int) + transactionTransmitCounterType
 Gets the comprehension-optional TRANSACTION_TRANSMIT_COUNTER type defined in RFC 7982. More...
 
(int) + unknownAttributesType
 Gets the UNKNOWN-ATTRIBUTES type. More...
 
(int) + useCandidateType
 Gets the USE-CANDIDATE type. More...
 
(int) + usernameType
 Gets the USERNAME type. More...
 
(void) + writeAddressTypeWithBuffer:offset:addressType:
 Writes an address type. More...
 
(int) + xorMappedAddressType
 Gets the XOR-MAPPED-ADDRESS type. More...
 
(int) + xorPeerAddressType
 Gets the XOR-PEER-ADDRESS type. More...
 
(int) + xorRelayedAddressType
 Gets the XOR-RELAYED-ADDRESS type. More...
 

Detailed Description

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.

Method Documentation

◆ description

- (NSString*) description

Returns a string that represents this instance.

Returns
A string that represents this instance.

◆ getValueLength

- (int) getValueLength

Gets the length of the value.

Implements FMLiveSwitchStunAttribute.

◆ initWithNumRequests:

- (instancetype) initWithNumRequests: (int)  numRequests

Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class.

Parameters
numRequestsThe number of times the request is transmitted with the same transaction ID to the server.

◆ initWithNumRequests:numResponses:

- (instancetype) initWithNumRequests: (int)  numRequests
numResponses: (int)  numResponses 

Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class.

Parameters
numRequestsThe number of times the request is transmitted with the same transaction ID to the server.
numResponsesThe number of times a response with the same transaction ID is sent from the server.

◆ numRequests

- (int) numRequests

Gets the number of times the request is transmitted with the same transaction ID to the server.

◆ numResponses

- (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.

◆ readValueFromWithBuffer:offset:

+ (FMLiveSwitchStunTransactionTransmitCounterAttribute*) readValueFromWithBuffer: (FMLiveSwitchDataBuffer *)  buffer
offset: (int)  offset 

Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class.

Parameters
bufferThe buffer.
offsetThe offset.

◆ setNumRequests:

- (void) setNumRequests: (int)  value

Sets the number of times the request is transmitted with the same transaction ID to the server.

◆ setNumResponses:

- (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.

◆ transactionTransmitCounterAttributeWithNumRequests:

+ (FMLiveSwitchStunTransactionTransmitCounterAttribute*) transactionTransmitCounterAttributeWithNumRequests: (int)  numRequests

Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class.

Parameters
numRequestsThe number of times the request is transmitted with the same transaction ID to the server.

◆ transactionTransmitCounterAttributeWithNumRequests:numResponses:

Initializes a new instance of the FMLiveSwitchStunTransactionTransmitCounterAttribute class.

Parameters
numRequestsThe number of times the request is transmitted with the same transaction ID to the server.
numResponsesThe number of times a response with the same transaction ID is sent from the server.

◆ typeValue

- (int) typeValue

Gets the type value.

Implements FMLiveSwitchStunAttribute.

◆ writeValueToWithBuffer:offset:

- (void) writeValueToWithBuffer: (FMLiveSwitchDataBuffer *)  buffer
offset: (int)  offset 

Writes the value to.

Parameters
bufferThe buffer.
offsetThe offset.

Implements FMLiveSwitchStunAttribute.