FMLiveSwitchIceServerTestResult Class Reference

An ICE server test result. More...

Instance Methods

(NSMutableArray *) - candidates
 Gets the candidates. More...
 
(NSMutableArray *) - getServerAddressesWithPort:
 Gets the server addresses from the candidates and a given port. More...
 
(NSMutableArray *) - getServerAddressesWithPort:publicIPAddress:
 Gets the server addresses from the candidates and a given port. More...
 
(NSMutableArray *) - getServerAddressesWithPort:publicIPAddresses:
 Gets the server addresses from the candidates and a given port. More...
 
(NSMutableArray *) - hostCandidates
 Gets the host candidates. More...
 
(instancetype) - initWithCandidates:
 Initializes a new instance of the FMLiveSwitchIceServerTestResult class. More...
 
(NSMutableArray *) - peerReflexiveCandidates
 Gets the peer reflexive candidates. More...
 
(NSMutableArray *) - relayedCandidates
 Gets the relayed candidates. More...
 
(NSMutableArray *) - serverReflexiveCandidates
 Gets the server reflexive candidates. More...
 

Class Methods

(FMLiveSwitchIceServerTestResult *) + iceServerTestResultWithCandidates:
 Initializes a new instance of the FMLiveSwitchIceServerTestResult class. More...
 

Detailed Description

An ICE server test result.

Method Documentation

◆ candidates

- (NSMutableArray*) candidates

Gets the candidates.

◆ getServerAddressesWithPort:

- (NSMutableArray*) getServerAddressesWithPort: (int)  port

Gets the server addresses from the candidates and a given port.

The IP addresses will be taken from the server-reflexive candidates if available, or the host candidates if not.

Parameters
portThe port.

◆ getServerAddressesWithPort:publicIPAddress:

- (NSMutableArray*) getServerAddressesWithPort: (int)  port
publicIPAddress: (NSString *)  publicIPAddress 

Gets the server addresses from the candidates and a given port.

The IP addresses will be taken from the server-reflexive candidates if available, or the host candidates if not.

Parameters
portThe port.
publicIPAddressThe public IP address, if known.

◆ getServerAddressesWithPort:publicIPAddresses:

- (NSMutableArray*) getServerAddressesWithPort: (int)  port
publicIPAddresses: (NSMutableArray *)  publicIPAddresses 

Gets the server addresses from the candidates and a given port.

The IP addresses will be taken from the server-reflexive candidates if available, or the host candidates if not.

Parameters
portThe port.
publicIPAddressesThe public IP addresses, if known.

◆ hostCandidates

- (NSMutableArray*) hostCandidates

Gets the host candidates.

◆ iceServerTestResultWithCandidates:

+ (FMLiveSwitchIceServerTestResult*) iceServerTestResultWithCandidates: (NSMutableArray *)  candidates

Initializes a new instance of the FMLiveSwitchIceServerTestResult class.

Parameters
candidatesThe candidates.

◆ initWithCandidates:

- (instancetype) initWithCandidates: (NSMutableArray *)  candidates

Initializes a new instance of the FMLiveSwitchIceServerTestResult class.

Parameters
candidatesThe candidates.

◆ peerReflexiveCandidates

- (NSMutableArray*) peerReflexiveCandidates

Gets the peer reflexive candidates.

◆ relayedCandidates

- (NSMutableArray*) relayedCandidates

Gets the relayed candidates.

◆ serverReflexiveCandidates

- (NSMutableArray*) serverReflexiveCandidates

Gets the server reflexive candidates.