A STUN attribute. More...
Instance Methods | |
| (int) | - getLength |
| Gets the length of the attribute, including header and padding. More... | |
| (int) | - getPaddingLengthWithValueLength: |
| Gets the length of the padding. More... | |
| (int) | - getValueLength |
| Gets the length of the attribute value. More... | |
| (instancetype) | - init |
| (int) | - typeValue |
| Gets the type value. More... | |
| (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) | - writeValueToWithBuffer:offset: |
| Writes the attribute value 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 | |
| (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... | |
A STUN attribute.
| + (int) alternateServerType |
Gets the ALTERNATE-SERVER type.
| + (FMLiveSwitchStunAttribute*) attribute |
| + (int) channelNumberType |
Gets the CHANNEL-NUMBER type.
| + (int) connectionIdType |
Gets the CONNECTION-ID type.
| + (int) controlledType |
Gets the CONTROLLED type.
| + (int) controllingType |
Gets the CONTROLLING type.
| + (int) dataType |
Gets the DATA type.
| + (int) dontFragmentType |
Gets the DONT-FRAGMENT type.
| + (int) errorCodeType |
Gets the ERROR-CODE type.
| + (int) evenPortType |
Gets the EVEN-PORT type.
| + (int) fingerprintType |
Gets the FINGERPRINT type.
| - (int) getLength |
Gets the length of the attribute, including header and padding.
| - (int) getPaddingLengthWithValueLength: | (int) | valueLength |
Gets the length of the padding.
| - (int) getValueLength |
Gets the length of the attribute value.
Implemented in FMLiveSwitchStunXorMappedAddressAttribute, FMLiveSwitchStunUsernameAttribute, FMLiveSwitchStunUnknownAttributesAttribute, FMLiveSwitchStunTurnXorRelayedAddressAttribute, FMLiveSwitchStunTurnXorPeerAddressAttribute, FMLiveSwitchStunTurnReservationTokenAttribute, FMLiveSwitchStunTurnRequestedTransportAttribute, FMLiveSwitchStunTurnRequestedAddressFamilyAttribute, FMLiveSwitchStunTurnLifetimeAttribute, FMLiveSwitchStunTurnEvenPortAttribute, FMLiveSwitchStunTurnDontFragmentAttribute, FMLiveSwitchStunTurnDataAttribute, FMLiveSwitchStunTurnConnectionIdAttribute, FMLiveSwitchStunTurnChannelNumberAttribute, FMLiveSwitchStunTransactionTransmitCounterAttribute, FMLiveSwitchStunSoftwareAttribute, FMLiveSwitchStunRealmAttribute, FMLiveSwitchStunNonceAttribute, FMLiveSwitchStunMessageIntegrityAttribute, FMLiveSwitchStunMappedAddressAttribute, FMLiveSwitchStunIceUseCandidateAttribute, FMLiveSwitchStunIcePriorityAttribute, FMLiveSwitchStunIceControllingAttribute, FMLiveSwitchStunIceControlledAttribute, FMLiveSwitchStunFingerprintAttribute, FMLiveSwitchStunErrorCodeAttribute, and FMLiveSwitchStunAlternateServerAttribute.
| - (instancetype) init |
| + (int) lifetimeType |
Gets the LIFETIME type.
| + (int) mappedAddressType |
Gets the MAPPED-ADDRESS type.
| + (int) messageIntegrityType |
Gets the MESSAGE-INTEGRITY type.
| + (int) nextLengthWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
Reads the length of the next attribute from a data buffer, including header and padding.
| buffer | The buffer. |
| offset | The offset. |
| + (int) nonceType |
Gets the NONCE type.
| + (int) priorityType |
Gets the PRIORITY type.
| + (FMLiveSwitchAddressType) readAddressTypeWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
Reads an address type.
| buffer | The buffer. |
| offset | The offset. |
| + (FMLiveSwitchStunAttribute*) readFromWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
| offsetPlus: | (int *) | offsetPlus | |
| transactionId: | (FMLiveSwitchDataBuffer *) | transactionId | |
| messageBuffer: | (FMLiveSwitchDataBuffer *) | messageBuffer | |
Reads an FMLiveSwitchStunAttribute from a data buffer.
| buffer | The buffer. |
| offset | The offset. |
| offsetPlus | The offset plus the attribute length. |
| transactionId | The STUN message transaction ID. |
| messageBuffer | The STUN message thus far as a byte array. |
| + (FMLiveSwitchStunAttribute*) readFromWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
| transactionId: | (FMLiveSwitchDataBuffer *) | transactionId | |
| messageBuffer: | (FMLiveSwitchDataBuffer *) | messageBuffer | |
Reads an FMLiveSwitchStunAttribute from a data buffer.
| buffer | The buffer. |
| offset | The offset. |
| transactionId | The STUN message transaction ID. |
| messageBuffer | The STUN message thus far as a byte array. |
| + (NSString*) readIPAddressWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
| addressType: | (FMLiveSwitchAddressType) | addressType | |
Reads an IP address.
| buffer | The buffer. |
| offset | The offset. |
| addressType | The address type. |
| + (int) readPortWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
Reads a port.
| buffer | The buffer. |
| offset | The offset. |
| + (NSString*) readXorIPAddressWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
| addressType: | (FMLiveSwitchAddressType) | addressType | |
| transactionId: | (FMLiveSwitchDataBuffer *) | transactionId | |
Reads an XOR'd IP address.
| buffer | The buffer. |
| offset | The offset. |
| addressType | The address type. |
| transactionId | The transaction identifier. |
| + (int) readXorPortWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
| transactionId: | (FMLiveSwitchDataBuffer *) | transactionId | |
Reads an XOR'd port.
| buffer | The buffer. |
| offset | The offset. |
| transactionId | The transaction identifier. |
| + (int) realmType |
Gets the REALM type.
| + (int) requestedAddressFamilyType |
Gets the REQUESTED-ADDRESS-FAMILY type.
| + (int) requestedTransportType |
Gets the REQUESTED-TRANSPORT type.
| + (int) reservationTokenType |
Gets the RESERVATION-TOKEN type.
| + (int) softwareType |
Gets the SOFTWARE type.
| + (int) transactionTransmitCounterType |
Gets the comprehension-optional TRANSACTION_TRANSMIT_COUNTER type defined in RFC 7982.
| - (int) typeValue |
Gets the type value.
Implemented in FMLiveSwitchStunXorMappedAddressAttribute, FMLiveSwitchStunUsernameAttribute, FMLiveSwitchStunUnknownAttributesAttribute, FMLiveSwitchStunTurnXorRelayedAddressAttribute, FMLiveSwitchStunTurnXorPeerAddressAttribute, FMLiveSwitchStunTurnReservationTokenAttribute, FMLiveSwitchStunTurnRequestedTransportAttribute, FMLiveSwitchStunTurnRequestedAddressFamilyAttribute, FMLiveSwitchStunTurnLifetimeAttribute, FMLiveSwitchStunTurnEvenPortAttribute, FMLiveSwitchStunTurnDontFragmentAttribute, FMLiveSwitchStunTurnDataAttribute, FMLiveSwitchStunTurnConnectionIdAttribute, FMLiveSwitchStunTurnChannelNumberAttribute, FMLiveSwitchStunTransactionTransmitCounterAttribute, FMLiveSwitchStunSoftwareAttribute, FMLiveSwitchStunRealmAttribute, FMLiveSwitchStunNonceAttribute, FMLiveSwitchStunMessageIntegrityAttribute, FMLiveSwitchStunMappedAddressAttribute, FMLiveSwitchStunIceUseCandidateAttribute, FMLiveSwitchStunIcePriorityAttribute, FMLiveSwitchStunIceControllingAttribute, FMLiveSwitchStunIceControlledAttribute, FMLiveSwitchStunFingerprintAttribute, FMLiveSwitchStunErrorCodeAttribute, and FMLiveSwitchStunAlternateServerAttribute.
| + (int) unknownAttributesType |
Gets the UNKNOWN-ATTRIBUTES type.
| + (int) useCandidateType |
Gets the USE-CANDIDATE type.
| + (int) usernameType |
Gets the USERNAME type.
| + (void) writeAddressTypeWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
| addressType: | (FMLiveSwitchAddressType) | addressType | |
Writes an address type.
| buffer | The buffer. |
| offset | The offset. |
| addressType | The address type. |
| - (void) writeIPAddressWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
| addressType: | (FMLiveSwitchAddressType) | addressType | |
| ipAddress: | (NSString *) | ipAddress | |
Writes an IP address.
| buffer | The buffer. |
| offset | The offset. |
| addressType | The address type. |
| ipAddress | The IP address. |
| - (void) writePortWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
| port: | (int) | port | |
Writes a port.
| buffer | The buffer. |
| offset | The offset. |
| port | The port. |
| - (void) writeToWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
Writes the attribute to a data buffer.
| buffer | The buffer. |
| offset | The offset. |
| - (void) writeToWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
| offsetPlus: | (int *) | offsetPlus | |
Writes the attribute to a data buffer.
| buffer | The buffer. |
| offset | The offset. |
| offsetPlus | The offset plus the value length. |
| - (void) writeValueToWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
Writes the attribute value to a data buffer.
| buffer | The buffer. |
| offset | The offset. |
Implemented in FMLiveSwitchStunXorMappedAddressAttribute, FMLiveSwitchStunUsernameAttribute, FMLiveSwitchStunUnknownAttributesAttribute, FMLiveSwitchStunTurnXorRelayedAddressAttribute, FMLiveSwitchStunTurnXorPeerAddressAttribute, FMLiveSwitchStunTurnReservationTokenAttribute, FMLiveSwitchStunTurnRequestedTransportAttribute, FMLiveSwitchStunTurnRequestedAddressFamilyAttribute, FMLiveSwitchStunTurnLifetimeAttribute, FMLiveSwitchStunTurnEvenPortAttribute, FMLiveSwitchStunTurnDontFragmentAttribute, FMLiveSwitchStunTurnDataAttribute, FMLiveSwitchStunTurnConnectionIdAttribute, FMLiveSwitchStunTurnChannelNumberAttribute, FMLiveSwitchStunTransactionTransmitCounterAttribute, FMLiveSwitchStunSoftwareAttribute, FMLiveSwitchStunRealmAttribute, FMLiveSwitchStunNonceAttribute, FMLiveSwitchStunMessageIntegrityAttribute, FMLiveSwitchStunMappedAddressAttribute, FMLiveSwitchStunIceUseCandidateAttribute, FMLiveSwitchStunIcePriorityAttribute, FMLiveSwitchStunIceControllingAttribute, FMLiveSwitchStunIceControlledAttribute, FMLiveSwitchStunFingerprintAttribute, FMLiveSwitchStunErrorCodeAttribute, and FMLiveSwitchStunAlternateServerAttribute.
| - (void) writeXorIPAddressWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
| addressType: | (FMLiveSwitchAddressType) | addressType | |
| ipAddress: | (NSString *) | ipAddress | |
| transactionId: | (FMLiveSwitchDataBuffer *) | transactionId | |
Writes an XOR'd IP address.
| buffer | The buffer. |
| offset | The offset. |
| addressType | The address type. |
| ipAddress | The IP address. |
| transactionId | The transaction identifier. |
| - (void) writeXorPortWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
| port: | (int) | port | |
| transactionId: | (FMLiveSwitchDataBuffer *) | transactionId | |
Writes an XOR'd port.
| buffer | The buffer. |
| offset | The offset. |
| port | The port. |
| transactionId | The transaction identifier. |
| + (int) xorMappedAddressType |
Gets the XOR-MAPPED-ADDRESS type.
| + (int) xorPeerAddressType |
Gets the XOR-PEER-ADDRESS type.
| + (int) xorRelayedAddressType |
Gets the XOR-RELAYED-ADDRESS type.