public class UPNPCandidate extends LocalCandidate
Modifier and Type | Field and Description |
---|---|
private org.bitlet.weupnp.GatewayDevice |
device
The UPnP gateway device.
|
MAX_LOCAL_PREFERENCE, MAX_TYPE_PREFERENCE, MIN_LOCAL_PREFERENCE, MIN_TYPE_PREFERENCE, priority
Constructor and Description |
---|
UPNPCandidate(TransportAddress transportAddress,
LocalCandidate base,
Component parentComponent,
org.bitlet.weupnp.GatewayDevice device)
Creates a UPNPCandidate for the specified transport, address,
and base.
|
Modifier and Type | Method and Description |
---|---|
protected void |
free()
Frees resources allocated by this candidate such as its
DatagramSocket, for example.
|
IceSocketWrapper |
getCandidateIceSocketWrapper() |
protected IceSocketWrapper |
getIceSocketWrapper() |
createStunDatagramPacketFilter, findRelatedCandidate, getCandidateIceSocketWrapper, getDatagramSocket, getExtendedType, 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 UPNPCandidate(TransportAddress transportAddress, LocalCandidate base, Component parentComponent, org.bitlet.weupnp.GatewayDevice device)
transportAddress
- the transport address that this candidate is
encapsulating.base
- the base candidateparentComponent
- the Component that this candidate
belongs to.device
- the UPnP gateway deviceprotected void free()
free
in class LocalCandidate
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()
.protected IceSocketWrapper getIceSocketWrapper()
getIceSocketWrapper
in class LocalCandidate
IceSocketWrapper
instance of the Component
which owns this LocalCandidate
. Note that this IS NOT an
instance specific to this LocalCandidate
. See
LocalCandidate.getCandidateIceSocketWrapper()
.Copyright © 2018. All rights reserved.