public class PeerReflexiveCandidate extends LocalCandidate
Peer Reflexive Candidates are generally allocated by NATs with endpoint dependent mapping also known as Symmetric NATs. PeerReflexiveCandidates are generally preferred to relayed ones. RFC 5245 explains this with better security ... although simply avoiding a relay would probably be enough of a reason for many.
MAX_LOCAL_PREFERENCE, MAX_TYPE_PREFERENCE, MIN_LOCAL_PREFERENCE, MIN_TYPE_PREFERENCE, priority
Constructor and Description |
---|
PeerReflexiveCandidate(TransportAddress transportAddress,
Component parentComponent,
LocalCandidate base,
long priority)
Creates a PeerReflexiveCandidate instance for the specified
transport address and properties.
|
Modifier and Type | Method and Description |
---|---|
IceSocketWrapper |
getCandidateIceSocketWrapper() |
createStunDatagramPacketFilter, findRelatedCandidate, free, getCandidateIceSocketWrapper, getDatagramSocket, getExtendedType, getIceSocketWrapper, getSocket, getStunSocket, getStunStack, getUfrag, isDefault, isSSL, setExtendedType, setSSL, setUfrag
canReach, compareTo, computeGTalkPriority, computeGTalkPriorityForType, computePriority, computePriorityForType, equals, getBase, getDefaultPreference, getFoundation, getHostAddress, getMappedAddress, getParentComponent, getPriority, getReflexiveAddress, getRelatedAddress, getRelatedCandidate, getRelayedAddress, getRelayServerAddress, getStunServerAddress, getTcpType, getTransport, getTransportAddress, getType, hashCode, isVirtual, setBase, setCandidateType, setFoundation, setMappedAddress, setRelayServerAddress, setStunServerAddress, setTcpType, setVirtual, toShortString, toString
public PeerReflexiveCandidate(TransportAddress transportAddress, Component parentComponent, LocalCandidate base, long priority)
transportAddress
- the transport address that this candidate is
encapsulating.parentComponent
- the Component that this candidate
belongs to.base
- the base of a peer reflexive candidate base is the local
candidate of the candidate pair from which the STUN check was sent.priority
- the priority of the candidate.public IceSocketWrapper getCandidateIceSocketWrapper()
getCandidateIceSocketWrapper
in class LocalCandidate
IceSocketWrapper
instance, if any, associated with
this candidate. Note that this IS NOT the instance which should be used
for reading and writing by the application, and SHOULD NOT be used from
outside ice4j (even if a subclass exposes it as public). Also see
LocalCandidate.getIceSocketWrapper()
.Copyright © 2018. All rights reserved.