A STUN message. More...
Class Methods | |
| (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... | |
A STUN message.
| + (int) allocateMethod |
Gets the allocate method.
| - (NSMutableArray*) attributes |
Gets the message attributes.
| + (int) bindingMethod |
Gets the binding method.
| + (int) channelBindMethod |
Gets the channel-bind method.
| + (int) connectionAttemptMethod |
Gets the connection-attempt method.
| + (int) connectionBindMethod |
Gets the connection-bind method.
| + (int) connectMethod |
Gets the connect method.
| + (FMLiveSwitchStunMessage*) createMessageWithMethod: | (int) | method | |
| messageType: | (FMLiveSwitchStunMessageType) | messageType | |
| transactionId: | (FMLiveSwitchDataBuffer *) | transactionId | |
Creates a message.
| method | The method. |
| messageType | Type of the message. |
| transactionId | The transaction ID. |
| + (int) createPermissionMethod |
Gets the create-permission method.
| + (int) dataMethod |
Gets the data method.
| + (FMLiveSwitchDataBuffer*) generateTransactionId |
Generates a random transaction ID.
| - (FMLiveSwitchStunAlternateServerAttribute*) getAlternateServer |
Gets the alternate-server attribute.
| - (FMLiveSwitchStunTurnChannelNumberAttribute*) getChannelNumber |
Gets the channel-number attribute.
| - (FMLiveSwitchStunTurnConnectionIdAttribute*) getConnectionId |
Gets the connection-id attribute.
| - (FMLiveSwitchStunTurnDataAttribute*) getData |
Gets the data attribute.
| - (FMLiveSwitchStunTurnDontFragmentAttribute*) getDontFragment |
Gets the don't-fragment attribute.
| - (FMLiveSwitchStunErrorCodeAttribute*) getErrorCode |
Gets the error-code attribute.
| - (FMLiveSwitchStunTurnEvenPortAttribute*) getEvenPort |
Gets the even-port attribute.
| - (FMLiveSwitchStunFingerprintAttribute*) getFingerprint |
Gets the fingerprint attribute.
| - (FMLiveSwitchStunIceControlledAttribute*) getIceControlled |
Gets the ICE-controlled attribute.
| - (FMLiveSwitchStunIceControllingAttribute*) getIceControlling |
Gets the ICE-controlling attribute.
| - (int) getLength |
Gets the length of the message.
| - (FMLiveSwitchStunTurnLifetimeAttribute*) getLifetime |
Gets the lifetime attribute.
| - (FMLiveSwitchStunMappedAddressAttribute*) getMappedAddress |
Gets the mapped-address attribute.
| - (FMLiveSwitchStunMessageIntegrityAttribute*) getMessageIntegrity |
Gets the message-integrity attribute.
| - (FMLiveSwitchStunNonceAttribute*) getNonce |
Gets the nonce attribute.
| - (int) getPayloadLength |
Gets the length of the payload.
| - (FMLiveSwitchStunIcePriorityAttribute*) getPriority |
Gets the priority attribute.
| - (FMLiveSwitchStunRealmAttribute*) getRealm |
Gets the realm attribute.
| - (FMLiveSwitchStunTurnRequestedAddressFamilyAttribute*) getRequestedAddressFamily |
Gets the requested-address-family attribute.
| - (FMLiveSwitchStunTurnRequestedTransportAttribute*) getRequestedTransport |
Gets the requested-transport attribute.
| - (FMLiveSwitchStunTurnReservationTokenAttribute*) getReservationToken |
Gets the reservation-token attribute.
| - (FMLiveSwitchStunSoftwareAttribute*) getSoftware |
Gets the software attribute.
| - (FMLiveSwitchStunTransactionTransmitCounterAttribute*) getTransactionTransmitCounter |
Gets the transaction-transmit-counter attribute.
| - (FMLiveSwitchStunUnknownAttributesAttribute*) getUnknownAttributes |
Gets the unknown-attributes attribute.
| - (FMLiveSwitchStunIceUseCandidateAttribute*) getUseCandidate |
Gets the use-candidate attribute.
| - (FMLiveSwitchStunUsernameAttribute*) getUsername |
Gets the username attribute.
| - (FMLiveSwitchStunXorMappedAddressAttribute*) getXorMappedAddress |
Gets the XOR-mapped-address attribute.
| - (FMLiveSwitchStunTurnXorPeerAddressAttribute*) getXorPeerAddress |
Gets the XOR-peer-address attribute.
| - (FMLiveSwitchStunTurnXorRelayedAddressAttribute*) getXorRelayedAddress |
Gets the XOR-relayed-address attribute.
| - (instancetype) initWithMessageType: | (FMLiveSwitchStunMessageType) | messageType | |
| transactionId: | (FMLiveSwitchDataBuffer *) | transactionId | |
Initializes a new instance of the FMLiveSwitchStunMessage class.
| messageType | The type of the message. |
| transactionId | The transaction ID. |
Implemented in FMLiveSwitchStunTurnSendMessage, FMLiveSwitchStunTurnRefreshMessage, FMLiveSwitchStunTurnDataMessage, FMLiveSwitchStunTurnCreatePermissionMessage, FMLiveSwitchStunTurnConnectMessage, FMLiveSwitchStunTurnConnectionBindMessage, FMLiveSwitchStunTurnConnectionAttemptMessage, FMLiveSwitchStunTurnChannelBindMessage, FMLiveSwitchStunTurnAllocateMessage, and FMLiveSwitchStunBindingMessage.
| + (NSMutableData*) magicCookieBytes |
Gets the "magic cookie" bytes.
| + (long long) magicCookieValue |
Gets the "magic cookie" value.
| - (FMLiveSwitchStunMessageType) messageType |
Gets the message type.
| + (FMLiveSwitchStunMessage*) messageWithMessageType: | (FMLiveSwitchStunMessageType) | messageType | |
| transactionId: | (FMLiveSwitchDataBuffer *) | transactionId | |
Initializes a new instance of the FMLiveSwitchStunMessage class.
| messageType | The type of the message. |
| transactionId | The transaction ID. |
| - (int) method |
Gets the method.
Implemented in FMLiveSwitchStunTurnSendMessage, FMLiveSwitchStunTurnRefreshMessage, FMLiveSwitchStunTurnDataMessage, FMLiveSwitchStunTurnCreatePermissionMessage, FMLiveSwitchStunTurnConnectMessage, FMLiveSwitchStunTurnConnectionBindMessage, FMLiveSwitchStunTurnConnectionAttemptMessage, FMLiveSwitchStunTurnChannelBindMessage, FMLiveSwitchStunTurnAllocateMessage, and FMLiveSwitchStunBindingMessage.
| + (FMLiveSwitchStunMessage*) readFromWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer |
Reads a FMLiveSwitchStunMessage instance from a buffer.
| buffer | The buffer. |
| + (FMLiveSwitchStunMessage*) readFromWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
Reads a FMLiveSwitchStunMessage instance from a buffer.
| buffer | The buffer. |
| offset | The offset. |
| + (FMLiveSwitchStunMessage*) readFromWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
| length: | (int *) | length | |
Reads an FMLiveSwitchStunMessage instance from a buffer.
| buffer | The buffer. |
| offset | The offset. |
| length | The length of the parsed segment. |
| + (int) refreshMethod |
Gets the refresh method.
| + (int) sendMethod |
Gets the send method.
| - (void) setAlternateServerWithAttribute: | (FMLiveSwitchStunAlternateServerAttribute *) | attribute |
Set the alternate-server attribute.
| attribute | The alternate-server attribute. |
| - (void) setChannelNumberWithAttribute: | (FMLiveSwitchStunTurnChannelNumberAttribute *) | attribute |
Sets the channel-number attribute.
| attribute | The channel-number attribute. |
| - (void) setConnectionIdWithAttribute: | (FMLiveSwitchStunTurnConnectionIdAttribute *) | attribute |
Sets the connection-id attribute.
| attribute | The connection-id attribute. |
| - (void) setDataWithAttribute: | (FMLiveSwitchStunTurnDataAttribute *) | attribute |
Sets the data attribute.
| attribute | The data attribute. |
| - (void) setDontFragmentWithAttribute: | (FMLiveSwitchStunTurnDontFragmentAttribute *) | attribute |
Sets the don't-fragment attribute.
| attribute | The don't-fragment attribute. |
| - (void) setErrorCodeWithAttribute: | (FMLiveSwitchStunErrorCodeAttribute *) | attribute |
Set the error-code attribute.
| attribute | The error-code attribute. |
| - (void) setEvenPortWithAttribute: | (FMLiveSwitchStunTurnEvenPortAttribute *) | attribute |
Sets the even-port attribute.
| attribute | The even-port attribute. |
| - (void) setFingerprintWithAttribute: | (FMLiveSwitchStunFingerprintAttribute *) | attribute |
Set the fingerprint attribute.
| attribute | The fingerprint attribute. |
| - (void) setIceControlledWithAttribute: | (FMLiveSwitchStunIceControlledAttribute *) | attribute |
Sets the ICE-controlled attribute.
| attribute | The ICE-controlled attribute. |
| - (void) setIceControllingWithAttribute: | (FMLiveSwitchStunIceControllingAttribute *) | attribute |
Sets the ICE-controlling attribute.
| attribute | The ICE-controlling attribute. |
| - (void) setLifetimeWithAttribute: | (FMLiveSwitchStunTurnLifetimeAttribute *) | attribute |
Sets the lifetime attribute.
| attribute | The lifetime attribute. |
| - (void) setMappedAddressWithAttribute: | (FMLiveSwitchStunMappedAddressAttribute *) | attribute |
Set the mapped-address attribute.
| attribute | The mapped-address attribute. |
| - (void) setMessageIntegrityWithAttribute: | (FMLiveSwitchStunMessageIntegrityAttribute *) | attribute |
Set the message-integrity attribute.
| attribute | The message-integrity attribute. |
| - (void) setNonceWithAttribute: | (FMLiveSwitchStunNonceAttribute *) | attribute |
Set the nonce attribute.
| attribute | The nonce attribute. |
| - (void) setPriorityWithAttribute: | (FMLiveSwitchStunIcePriorityAttribute *) | attribute |
Sets the priority attribute.
| attribute | The priority attribute. |
| - (void) setRealmWithAttribute: | (FMLiveSwitchStunRealmAttribute *) | attribute |
Set the realm attribute.
| attribute | The realm attribute. |
| - (void) setRequestedAddressFamilyWithAttribute: | (FMLiveSwitchStunTurnRequestedAddressFamilyAttribute *) | attribute |
Sets the requested-address-family attribute.
| attribute | The requested-address-family attribute. |
| - (void) setRequestedTransportWithAttribute: | (FMLiveSwitchStunTurnRequestedTransportAttribute *) | attribute |
Sets the requested-transport attribute.
| attribute | The requested-transport attribute. |
| - (void) setReservationTokenWithAttribute: | (FMLiveSwitchStunTurnReservationTokenAttribute *) | attribute |
Sets the reservation-token attribute.
| attribute | The reservation-token attribute. |
| - (void) setSoftwareWithAttribute: | (FMLiveSwitchStunSoftwareAttribute *) | attribute |
Set the software attribute.
| attribute | The software attribute. |
| - (void) setTransactionTransmitCounterWithAttribute: | (FMLiveSwitchStunTransactionTransmitCounterAttribute *) | attribute |
Set the transaction-transmit-counter attribute.
| attribute | The transaction-transmit-counter attribute. |
| - (void) setUnknownAttributesWithAttribute: | (FMLiveSwitchStunUnknownAttributesAttribute *) | attribute |
Set the unknown-attributes attribute.
| attribute | The unknown-attributes attribute. |
| - (void) setUseCandidateWithAttribute: | (FMLiveSwitchStunIceUseCandidateAttribute *) | attribute |
Sets the use-candidate attribute.
| attribute | The use-candidate attribute. |
| - (void) setUsernameWithAttribute: | (FMLiveSwitchStunUsernameAttribute *) | attribute |
Set the username attribute.
| attribute | The username attribute. |
| - (void) setXorMappedAddressWithAttribute: | (FMLiveSwitchStunXorMappedAddressAttribute *) | attribute |
Set the XOR-mapped-address attribute.
| attribute | The XOR-mapped-address attribute. |
| - (void) setXorPeerAddressWithAttribute: | (FMLiveSwitchStunTurnXorPeerAddressAttribute *) | attribute |
Sets the XOR-peer-address attribute.
| attribute | The XOR-peer-address attribute. |
| - (void) setXorRelayedAddressWithAttribute: | (FMLiveSwitchStunTurnXorRelayedAddressAttribute *) | attribute |
Sets the XOR-relayed-address attribute.
| attribute | The XOR-relayed-address attribute. |
| - (FMLiveSwitchDataBuffer*) transactionId |
Gets the transaction ID.
| - (void) writeToWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer |
Writes the message to a data buffer.
| buffer | The buffer. |
| - (void) writeToWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
Writes the message to a data buffer.
| buffer | The buffer. |
| offset | The offset. |
| - (void) writeToWithBuffer: | (FMLiveSwitchDataBuffer *) | buffer | |
| offset: | (int) | offset | |
| offsetPlus: | (int *) | offsetPlus | |
Writes the message to a data buffer.
| buffer | The buffer. |
| offset | The offset. |
| offsetPlus | The offset plus the value length. |