FMIceLinkStunMappedAddressAttribute Class Reference
Inherits from | FMIceLinkStunAttribute : NSObject |
---|---|
Declared in | FMIceLinkStunMappedAddressAttribute.h FMIceLinkStunMappedAddressAttribute.m |
Overview
The MAPPED-ADDRESS attribute indicates a reflexive trans[port](#//api/name/port) address
of the client. It consists of an 8-bit address family and a 16-bit
[port](#//api/name/port), followed by a fixed-length value representing the IP address.
If the address family is IPv4, the address MUST be 32 bits. If the
address family is IPv6, the address MUST be 128 bits. All fields
must be in network byte order.
– 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
FMIceLinkStunMappedAddressAttribute.h
– getValueLength
Gets the length of the value.
@return
- (int)getValueLength
Discussion
Gets the length of the value.
@return
Declared In
FMIceLinkStunMappedAddressAttribute.h
– initWithIPAddress:port:
Initializes a new instance of the FMIceLinkStunMappedAddressAttribute class.
- (instancetype)initWithIPAddress:(NSString *)ipAddress port:(int)port
Parameters
ipAddress |
The IP address. |
---|---|
port |
The port. |
Discussion
Initializes a new instance of the FMIceLinkStunMappedAddressAttribute class.
Declared In
FMIceLinkStunMappedAddressAttribute.h
– ipAddress
Gets the IP address.
- (NSString *)ipAddress
Discussion
Gets the IP address.
Declared In
FMIceLinkStunMappedAddressAttribute.h
+ mappedAddressAttributeWithIPAddress:port:
Initializes a new instance of the FMIceLinkStunMappedAddressAttribute class.
+ (FMIceLinkStunMappedAddressAttribute *)mappedAddressAttributeWithIPAddress:(NSString *)ipAddress port:(int)port
Parameters
ipAddress |
The IP address. |
---|---|
port |
The port. |
Discussion
Initializes a new instance of the FMIceLinkStunMappedAddressAttribute class.
Declared In
FMIceLinkStunMappedAddressAttribute.h
– port
Gets the port.
- (int)port
Discussion
Gets the port.
Declared In
FMIceLinkStunMappedAddressAttribute.h
+ readValueFromWithBuffer:offset:
Initializes a new instance of the FMIceLinkStunMappedAddressAttribute class.
+ (FMIceLinkStunMappedAddressAttribute *)readValueFromWithBuffer:(FMIceLinkDataBuffer *)buffer offset:(int)offset
Parameters
buffer |
The buffer. |
---|---|
offset |
The offset. @return |
Discussion
Initializes a new instance of the FMIceLinkStunMappedAddressAttribute class.
Declared In
FMIceLinkStunMappedAddressAttribute.h
– setIPAddress:
Sets the IP address.
- (void)setIPAddress:(NSString *)value
Discussion
Sets the IP address.
Declared In
FMIceLinkStunMappedAddressAttribute.h
– setPort:
Sets the [port](#//api/name/port).
- (void)setPort:(int)value
Discussion
Sets the [port](#//api/name/port).
Declared In
FMIceLinkStunMappedAddressAttribute.h
– typeValue
Gets the type value.
- (int)typeValue
Discussion
Gets the type value.
Declared In
FMIceLinkStunMappedAddressAttribute.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
FMIceLinkStunMappedAddressAttribute.h