FMLiveSwitchStunTurnCreatePermissionMessage Class Reference

A generic STUN create-permission message. More...

Instance Methods

(instancetype) - initWithMessageType:transactionId:
 Initializes a new instance of the FMLiveSwitchStunTurnCreatePermissionMessage class. More...
 
(int) - method
 Gets the method. More...
 
- Instance Methods inherited from FMLiveSwitchStunMessage
(NSMutableArray *) - attributes
 Gets the message attributes. More...
 
(FMLiveSwitchStunAlternateServerAttribute *) - getAlternateServer
 Gets the alternate-server attribute. More...
 
(FMLiveSwitchStunTurnChannelNumberAttribute *) - getChannelNumber
 Gets the channel-number attribute. More...
 
(FMLiveSwitchStunTurnConnectionIdAttribute *) - getConnectionId
 Gets the connection-id attribute. More...
 
(FMLiveSwitchStunTurnDataAttribute *) - getData
 Gets the data attribute. More...
 
(FMLiveSwitchStunTurnDontFragmentAttribute *) - getDontFragment
 Gets the don't-fragment attribute. More...
 
(FMLiveSwitchStunErrorCodeAttribute *) - getErrorCode
 Gets the error-code attribute. More...
 
(FMLiveSwitchStunTurnEvenPortAttribute *) - getEvenPort
 Gets the even-port attribute. More...
 
(FMLiveSwitchStunFingerprintAttribute *) - getFingerprint
 Gets the fingerprint attribute. More...
 
(FMLiveSwitchStunIceControlledAttribute *) - getIceControlled
 Gets the ICE-controlled attribute. More...
 
(FMLiveSwitchStunIceControllingAttribute *) - getIceControlling
 Gets the ICE-controlling attribute. More...
 
(int) - getLength
 Gets the length of the message. More...
 
(FMLiveSwitchStunTurnLifetimeAttribute *) - getLifetime
 Gets the lifetime attribute. More...
 
(FMLiveSwitchStunMappedAddressAttribute *) - getMappedAddress
 Gets the mapped-address attribute. More...
 
(FMLiveSwitchStunMessageIntegrityAttribute *) - getMessageIntegrity
 Gets the message-integrity attribute. More...
 
(FMLiveSwitchStunNonceAttribute *) - getNonce
 Gets the nonce attribute. More...
 
(int) - getPayloadLength
 Gets the length of the payload. More...
 
(FMLiveSwitchStunIcePriorityAttribute *) - getPriority
 Gets the priority attribute. More...
 
(FMLiveSwitchStunRealmAttribute *) - getRealm
 Gets the realm attribute. More...
 
(FMLiveSwitchStunTurnRequestedAddressFamilyAttribute *) - getRequestedAddressFamily
 Gets the requested-address-family attribute. More...
 
(FMLiveSwitchStunTurnRequestedTransportAttribute *) - getRequestedTransport
 Gets the requested-transport attribute. More...
 
(FMLiveSwitchStunTurnReservationTokenAttribute *) - getReservationToken
 Gets the reservation-token attribute. More...
 
(FMLiveSwitchStunSoftwareAttribute *) - getSoftware
 Gets the software attribute. More...
 
(FMLiveSwitchStunTransactionTransmitCounterAttribute *) - getTransactionTransmitCounter
 Gets the transaction-transmit-counter attribute. More...
 
(FMLiveSwitchStunUnknownAttributesAttribute *) - getUnknownAttributes
 Gets the unknown-attributes attribute. More...
 
(FMLiveSwitchStunIceUseCandidateAttribute *) - getUseCandidate
 Gets the use-candidate attribute. More...
 
(FMLiveSwitchStunUsernameAttribute *) - getUsername
 Gets the username attribute. More...
 
(FMLiveSwitchStunXorMappedAddressAttribute *) - getXorMappedAddress
 Gets the XOR-mapped-address attribute. More...
 
(FMLiveSwitchStunTurnXorPeerAddressAttribute *) - getXorPeerAddress
 Gets the XOR-peer-address attribute. More...
 
(FMLiveSwitchStunTurnXorRelayedAddressAttribute *) - getXorRelayedAddress
 Gets the XOR-relayed-address attribute. More...
 
(FMLiveSwitchStunMessageType) - messageType
 Gets the message type. More...
 
(void) - setAlternateServerWithAttribute:
 Set the alternate-server attribute. More...
 
(void) - setChannelNumberWithAttribute:
 Sets the channel-number attribute. More...
 
(void) - setConnectionIdWithAttribute:
 Sets the connection-id attribute. More...
 
(void) - setDataWithAttribute:
 Sets the data attribute. More...
 
(void) - setDontFragmentWithAttribute:
 Sets the don't-fragment attribute. More...
 
(void) - setErrorCodeWithAttribute:
 Set the error-code attribute. More...
 
(void) - setEvenPortWithAttribute:
 Sets the even-port attribute. More...
 
(void) - setFingerprintWithAttribute:
 Set the fingerprint attribute. More...
 
(void) - setIceControlledWithAttribute:
 Sets the ICE-controlled attribute. More...
 
(void) - setIceControllingWithAttribute:
 Sets the ICE-controlling attribute. More...
 
(void) - setLifetimeWithAttribute:
 Sets the lifetime attribute. More...
 
(void) - setMappedAddressWithAttribute:
 Set the mapped-address attribute. More...
 
(void) - setMessageIntegrityWithAttribute:
 Set the message-integrity attribute. More...
 
(void) - setNonceWithAttribute:
 Set the nonce attribute. More...
 
(void) - setPriorityWithAttribute:
 Sets the priority attribute. More...
 
(void) - setRealmWithAttribute:
 Set the realm attribute. More...
 
(void) - setRequestedAddressFamilyWithAttribute:
 Sets the requested-address-family attribute. More...
 
(void) - setRequestedTransportWithAttribute:
 Sets the requested-transport attribute. More...
 
(void) - setReservationTokenWithAttribute:
 Sets the reservation-token attribute. More...
 
(void) - setSoftwareWithAttribute:
 Set the software attribute. More...
 
(void) - setTransactionTransmitCounterWithAttribute:
 Set the transaction-transmit-counter attribute. More...
 
(void) - setUnknownAttributesWithAttribute:
 Set the unknown-attributes attribute. More...
 
(void) - setUseCandidateWithAttribute:
 Sets the use-candidate attribute. More...
 
(void) - setUsernameWithAttribute:
 Set the username attribute. More...
 
(void) - setXorMappedAddressWithAttribute:
 Set the XOR-mapped-address attribute. More...
 
(void) - setXorPeerAddressWithAttribute:
 Sets the XOR-peer-address attribute. More...
 
(void) - setXorRelayedAddressWithAttribute:
 Sets the XOR-relayed-address attribute. More...
 
(FMLiveSwitchDataBuffer *) - transactionId
 Gets the transaction ID. More...
 
(void) - writeToWithBuffer:
 Writes the message to a data buffer. More...
 
(void) - writeToWithBuffer:offset:
 Writes the message to a data buffer. More...
 
(void) - writeToWithBuffer:offset:offsetPlus:
 Writes the message to a data buffer. More...
 

Class Methods

(FMLiveSwitchStunTurnCreatePermissionMessage *) + createPermissionMessageWithMessageType:transactionId:
 Initializes a new instance of the FMLiveSwitchStunTurnCreatePermissionMessage class. More...
 
- Class Methods inherited from FMLiveSwitchStunMessage
(int) + allocateMethod
 Gets the allocate method. More...
 
(int) + bindingMethod
 Gets the binding method. More...
 
(int) + channelBindMethod
 Gets the channel-bind method. More...
 
(int) + connectionAttemptMethod
 Gets the connection-attempt method. More...
 
(int) + connectionBindMethod
 Gets the connection-bind method. More...
 
(int) + connectMethod
 Gets the connect method. More...
 
(FMLiveSwitchStunMessage *) + createMessageWithMethod:messageType:transactionId:
 Creates a message. More...
 
(int) + createPermissionMethod
 Gets the create-permission method. More...
 
(int) + dataMethod
 Gets the data method. More...
 
(FMLiveSwitchDataBuffer *) + generateTransactionId
 Generates a random transaction ID. More...
 
(NSMutableData *) + magicCookieBytes
 Gets the "magic cookie" bytes. More...
 
(long long) + magicCookieValue
 Gets the "magic cookie" value. More...
 
(FMLiveSwitchStunMessage *) + messageWithMessageType:transactionId:
 Initializes a new instance of the FMLiveSwitchStunMessage class. More...
 
(FMLiveSwitchStunMessage *) + readFromWithBuffer:
 Reads a FMLiveSwitchStunMessage instance from a buffer. More...
 
(FMLiveSwitchStunMessage *) + readFromWithBuffer:offset:
 Reads a FMLiveSwitchStunMessage instance from a buffer. More...
 
(FMLiveSwitchStunMessage *) + readFromWithBuffer:offset:length:
 Reads an FMLiveSwitchStunMessage instance from a buffer. More...
 
(int) + refreshMethod
 Gets the refresh method. More...
 
(int) + sendMethod
 Gets the send method. More...
 

Detailed Description

A generic STUN create-permission message.

Method Documentation

◆ createPermissionMessageWithMessageType:transactionId:

+ (FMLiveSwitchStunTurnCreatePermissionMessage*) createPermissionMessageWithMessageType: (FMLiveSwitchStunMessageType)  messageType
transactionId: (FMLiveSwitchDataBuffer *)  transactionId 

Initializes a new instance of the FMLiveSwitchStunTurnCreatePermissionMessage class.

Parameters
messageTypeThe type of the message.
transactionIdThe transaction ID.

◆ initWithMessageType:transactionId:

- (instancetype) initWithMessageType: (FMLiveSwitchStunMessageType)  messageType
transactionId: (FMLiveSwitchDataBuffer *)  transactionId 

Initializes a new instance of the FMLiveSwitchStunTurnCreatePermissionMessage class.

Parameters
messageTypeThe type of the message.
transactionIdThe transaction ID.

Implements FMLiveSwitchStunMessage.

◆ method

- (int) method

Gets the method.

Implements FMLiveSwitchStunMessage.