FMIceLinkStunXorMappedAddressAttribute Class Reference

Inherits from FMIceLinkStunAttribute : NSObject
Declared in FMIceLinkStunXorMappedAddressAttribute.h
FMIceLinkStunXorMappedAddressAttribute.m

Overview

The XOR-MAPPED-ADDRESS attribute is identical to the MAPPED-ADDRESS attribute, except that the reflexive trans[port](#//api/name/port) address is obfuscated through the XOR function.

– description

Returns a string that represents this instance.

@return A string that represents this instance.

- (NSString *)description

Discussion

Returns a string that represents this instance.

@return A string that represents this instance.

Declared In

FMIceLinkStunXorMappedAddressAttribute.h

– getValueLength

Gets the length of the value.

@return

- (int)getValueLength

Discussion

Gets the length of the value.

@return

Declared In

FMIceLinkStunXorMappedAddressAttribute.h

– initWithIPAddress:port:transactionId:

Initializes a new instance of the FMIceLinkStunXorMappedAddressAttribute class.
- (instancetype)initWithIPAddress:(NSString *)ipAddress port:(int)port transactionId:(FMIceLinkDataBuffer *)transactionId

Parameters

ipAddress

The IP address.

port

The port.

transactionId

The transaction ID.

Discussion

Initializes a new instance of the FMIceLinkStunXorMappedAddressAttribute class.

Declared In

FMIceLinkStunXorMappedAddressAttribute.h

– ipAddress

Gets the IP address.
- (NSString *)ipAddress

Discussion

Gets the IP address.

Declared In

FMIceLinkStunXorMappedAddressAttribute.h

– port

Gets the port.
- (int)port

Discussion

Gets the port.

Declared In

FMIceLinkStunXorMappedAddressAttribute.h

+ readValueFromWithBuffer:offset:transactionId:

Initializes a new instance of the FMIceLinkStunXorMappedAddressAttribute class.
+ (FMIceLinkStunXorMappedAddressAttribute *)readValueFromWithBuffer:(FMIceLinkDataBuffer *)buffer offset:(int)offset transactionId:(FMIceLinkDataBuffer *)transactionId

Parameters

buffer

The buffer.

offset

The offset.

transactionId

The transaction ID. @return

Discussion

Initializes a new instance of the FMIceLinkStunXorMappedAddressAttribute class.

Declared In

FMIceLinkStunXorMappedAddressAttribute.h

– setIPAddress:

Sets the IP address.
- (void)setIPAddress:(NSString *)value

Discussion

Sets the IP address.

Declared In

FMIceLinkStunXorMappedAddressAttribute.h

– setPort:

Sets the [port](#//api/name/port).
- (void)setPort:(int)value

Discussion

Sets the [port](#//api/name/port).

Declared In

FMIceLinkStunXorMappedAddressAttribute.h

– transactionId

Gets the transaction ID.
- (FMIceLinkDataBuffer *)transactionId

Discussion

Gets the transaction ID.

Declared In

FMIceLinkStunXorMappedAddressAttribute.h

– typeValue

Gets the type value.
- (int)typeValue

Discussion

Gets the type value.

Declared In

FMIceLinkStunXorMappedAddressAttribute.h

– writeValueToWithBuffer:offset:

Writes the value to.
- (void)writeValueToWithBuffer:(FMIceLinkDataBuffer *)buffer offset:(int)offset

Parameters

buffer

The buffer.

offset

The offset.

Discussion

Writes the value to.

Declared In

FMIceLinkStunXorMappedAddressAttribute.h

+ xorMappedAddressAttributeWithIPAddress:port:transactionId:

Initializes a new instance of the FMIceLinkStunXorMappedAddressAttribute class.
+ (FMIceLinkStunXorMappedAddressAttribute *)xorMappedAddressAttributeWithIPAddress:(NSString *)ipAddress port:(int)port transactionId:(FMIceLinkDataBuffer *)transactionId

Parameters

ipAddress

The IP address.

port

The port.

transactionId

The transaction ID.

Discussion

Initializes a new instance of the FMIceLinkStunXorMappedAddressAttribute class.

Declared In

FMIceLinkStunXorMappedAddressAttribute.h