public class ServerReflexiveCandidate extends LocalCandidate
This class does not contain a socket itself and in order to send bytes over the network, one has to retrieve the socket of its base.
Modifier and Type | Field and Description |
---|---|
private StunCandidateHarvest |
stunHarvest
The STUN candidate harvest.
|
MAX_LOCAL_PREFERENCE, MAX_TYPE_PREFERENCE, MIN_LOCAL_PREFERENCE, MIN_TYPE_PREFERENCE, priority
Constructor and Description |
---|
ServerReflexiveCandidate(TransportAddress address,
HostCandidate base,
TransportAddress stunSrvrAddr,
CandidateExtendedType extendedType)
Creates a ServerReflexiveCandidate for the specified transport
address, and base.
|
ServerReflexiveCandidate(TransportAddress address,
HostCandidate base,
TransportAddress stunSrvrAddr,
StunCandidateHarvest stunHarvest,
CandidateExtendedType extendedType)
Creates a ServerReflexiveCandidate for the specified transport
address, and base.
|
Modifier and Type | Method and Description |
---|---|
void |
free()
Frees resources allocated by this candidate such as its
DatagramSocket, for example.
|
IceSocketWrapper |
getCandidateIceSocketWrapper() |
createStunDatagramPacketFilter, findRelatedCandidate, 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
private final StunCandidateHarvest stunHarvest
public ServerReflexiveCandidate(TransportAddress address, HostCandidate base, TransportAddress stunSrvrAddr, CandidateExtendedType extendedType)
address
- the TransportAddress
that this Candidate
is representing.base
- the HostCandidate
that this server reflexive
candidate was obtained through.stunSrvrAddr
- the TransportAddress
of the stun server that
reflected this candidate.extendedType
- The type of method used to discover this candidate
("host", "upnp", "stun peer reflexive", "stun server reflexive", "turn
relayed", "google turn relayed", "google tcp turn relayed" or "jingle
node").public ServerReflexiveCandidate(TransportAddress address, HostCandidate base, TransportAddress stunSrvrAddr, StunCandidateHarvest stunHarvest, CandidateExtendedType extendedType)
address
- the TransportAddress
that this Candidate
is representing.base
- the HostCandidate
that this server reflexive
candidate was obtained through.stunSrvrAddr
- the TransportAddress
of the stun server that
reflected this candidate.stunHarvest
- the StunCandidateHarvest
extendedType
- The type of method used to discover this candidate
("host", "upnp", "stun peer reflexive", "stun server reflexive", "turn
relayed", "google turn relayed", "google tcp turn relayed" or "jingle
node").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()
.public void free()
free
in class LocalCandidate
Copyright © 2018. All rights reserved.