public enum CandidateType extends java.lang.Enum<CandidateType>
CandidatePacketExtension
s.Enum Constant and Description |
---|
host
Indicates that a candidate is a Host Candidate:
A candidate obtained by binding to a specific port from an IP address on the host. |
local
Old name for Host Candidate used by Google Talk.
|
prflx
Indicates that a candidate is a Peer Reflexive Candidate:
A candidate whose IP address and port are a binding allocated by a NAT for an agent when it sent a STUN Binding request through the NAT to its peer. |
relay
Indicates that a candidate is a Relayed Candidate:
A candidate obtained by sending a TURN Allocate request from a host candidate to a TURN server. |
srflx
Indicates that a candidate is a Server Reflexive Candidate:
A candidate whose IP address and port are a binding allocated by a NAT for an agent when it sent a packet through the NAT to a server. |
stun
Old name for Server Reflexive Candidate used by Google Talk.
|
Modifier and Type | Method and Description |
---|---|
static CandidateType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CandidateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CandidateType host
public static final CandidateType prflx
public static final CandidateType relay
public static final CandidateType srflx
public static final CandidateType stun
public static final CandidateType local
public static CandidateType[] values()
for (CandidateType c : CandidateType.values()) System.out.println(c);
public static CandidateType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.