Class IceServerTestResult
An ICE server test result.
Inheritance
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class IceServerTestResult
Constructors
IceServerTestResult(Candidate[])
Initializes a new instance of the IceServerTestResult class.
Declaration
public IceServerTestResult(Candidate[] candidates)
Parameters
Type | Name | Description |
---|---|---|
Candidate[] | candidates | The candidates. |
Properties
Candidates
Gets the candidates.
Declaration
public Candidate[] Candidates { get; }
Property Value
Type | Description |
---|---|
Candidate[] |
HostCandidates
Gets the host candidates.
Declaration
public Candidate[] HostCandidates { get; }
Property Value
Type | Description |
---|---|
Candidate[] |
PeerReflexiveCandidates
Gets the peer reflexive candidates.
Declaration
public Candidate[] PeerReflexiveCandidates { get; }
Property Value
Type | Description |
---|---|
Candidate[] |
RelayedCandidates
Gets the relayed candidates.
Declaration
public Candidate[] RelayedCandidates { get; }
Property Value
Type | Description |
---|---|
Candidate[] |
ServerReflexiveCandidates
Gets the server reflexive candidates.
Declaration
public Candidate[] ServerReflexiveCandidates { get; }
Property Value
Type | Description |
---|---|
Candidate[] |
Methods
GetServerAddresses(Int32)
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.
Declaration
public ServerAddress[] GetServerAddresses(int port)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | port | The port. |
Returns
Type | Description |
---|---|
ServerAddress[] |
GetServerAddresses(Int32, String)
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.
Declaration
public ServerAddress[] GetServerAddresses(int port, string publicIPAddress)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | port | The port. |
System.String | publicIPAddress | The public IP address, if known. |
Returns
Type | Description |
---|---|
ServerAddress[] |
GetServerAddresses(Int32, String[])
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.
Declaration
public ServerAddress[] GetServerAddresses(int port, string[] publicIPAddresses)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | port | The port. |
System.String[] | publicIPAddresses | The public IP addresses, if known. |
Returns
Type | Description |
---|---|
ServerAddress[] |