FMIceLinkTransportAddress Class Reference

Inherits from NSObject
Declared in FMIceLinkTransportAddress.h
FMIceLinkTransportAddress.m

Overview

An IP address and [port](#//api/name/port).

+ checkMaskWithAddress1:address2:mask:

Compares two addresses to see if they are on the same subnet.
+ (bool)checkMaskWithAddress1:(NSString *)address1 address2:(NSString *)address2 mask:(NSString *)mask

Parameters

address1

The first address.

address2

The second address.

mask

The subnet mask.

Discussion

Compares two addresses to see if they are on the same subnet.

Declared In

FMIceLinkTransportAddress.h

– 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

FMIceLinkTransportAddress.h

– hash

Returns a hash code for this instance.

@return A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

- (int)hash

Discussion

Returns a hash code for this instance.

@return A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Declared In

FMIceLinkTransportAddress.h

– initWithIPAddress:port:

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

Parameters

ipAddress

The IP address.

port

The port.

Discussion

Initializes a new instance of the FMIceLinkTransportAddress class.

Declared In

FMIceLinkTransportAddress.h

– ipAddress

Gets the IP address.
- (NSString *)ipAddress

Discussion

Gets the IP address.

Declared In

FMIceLinkTransportAddress.h

+ isAnyWithIPAddress:

Determines whether the specified IP address is all zeros and represents "any" IP address.
+ (bool)isAnyWithIPAddress:(NSString *)ipAddress

Parameters

ipAddress

The IP address.

Discussion

Determines whether the specified IP address is all zeros and represents "any" IP address.

Declared In

FMIceLinkTransportAddress.h

– isEqualWithObj:

Determines whether the specified object is equal to this instance.
- (bool)isEqualWithObj:(id)obj

Parameters

obj

The object to compare with this instance.

Discussion

Determines whether the specified object is equal to this instance.

Declared In

FMIceLinkTransportAddress.h

+ isIPAddress:

Determines whether a string is a valid IPv4 or IPv6 address
+ (bool)isIPAddress:(NSString *)address

Parameters

address

The address.

Discussion

Determines whether a string is a valid IPv4 or IPv6 address

Declared In

FMIceLinkTransportAddress.h

+ isLinkLocalWithIPAddress:

Determines whether the specified IP address is link-local.
+ (bool)isLinkLocalWithIPAddress:(NSString *)ipAddress

Parameters

ipAddress

The IP address.

Discussion

Determines whether the specified IP address is link-local.

Declared In

FMIceLinkTransportAddress.h

+ isLoopbackWithIPAddress:

Determines whether the specified IP address is loopback.
+ (bool)isLoopbackWithIPAddress:(NSString *)ipAddress

Parameters

ipAddress

The IP address.

Discussion

Determines whether the specified IP address is loopback.

Declared In

FMIceLinkTransportAddress.h

+ isPrivateWithIPAddress:

Determines whether the specified IP address is private.
+ (bool)isPrivateWithIPAddress:(NSString *)ipAddress

Parameters

ipAddress

The IP address.

Discussion

Determines whether the specified IP address is private.

Declared In

FMIceLinkTransportAddress.h

+ isReservedWithIPAddress:

Determines whether the specified IP address is reserved.
+ (bool)isReservedWithIPAddress:(NSString *)ipAddress

Parameters

ipAddress

The IP address.

Discussion

Determines whether the specified IP address is reserved.

Declared In

FMIceLinkTransportAddress.h

+ maskFromPrefixLength:

Gets a subnet mask from a prefix length (0-32).
+ (NSString *)maskFromPrefixLength:(int)prefixLength

Parameters

prefixLength

The prefix length.

Discussion

Gets a subnet mask from a prefix length (0-32).

Declared In

FMIceLinkTransportAddress.h

– port

Gets the port.
- (int)port

Discussion

Gets the port.

Declared In

FMIceLinkTransportAddress.h

+ sanitizeIPAddress:

Sanitizes the IP address, removing any local information.
+ (NSString *)sanitizeIPAddress:(NSString *)ipAddress

Parameters

ipAddress

The IP address to sanitize.

Discussion

Sanitizes the IP address, removing any local information.

Declared In

FMIceLinkTransportAddress.h

+ transportAddressWithIPAddress:port:

Initializes a new instance of the FMIceLinkTransportAddress class.
+ (FMIceLinkTransportAddress *)transportAddressWithIPAddress:(NSString *)ipAddress port:(int)port

Parameters

ipAddress

The IP address.

port

The port.

Discussion

Initializes a new instance of the FMIceLinkTransportAddress class.

Declared In

FMIceLinkTransportAddress.h