private class SinglePortUdpHarvester.MyCandidate extends HostCandidate
Modifier and Type | Field and Description |
---|---|
private Map<SocketAddress,IceSocketWrapper> |
candidateSockets
The collection of IceSocketWrappers that can potentially
be used by the ice4j user to read/write from/to this candidate.
|
private boolean |
freed
The flag which indicates that this MyCandidate has been
freed.
|
private Map<SocketAddress,DatagramSocket> |
sockets
The collection of DatagramSockets added to this candidate.
|
private String |
ufrag
The local username fragment associated with this candidate.
|
MAX_LOCAL_PREFERENCE, MAX_TYPE_PREFERENCE, MIN_LOCAL_PREFERENCE, MIN_TYPE_PREFERENCE, priority
Modifier | Constructor and Description |
---|---|
private |
MyCandidate(Component component,
String ufrag)
Initializes a new MyCandidate instance with the given
Component and the given local username fragment.
|
Modifier and Type | Method and Description |
---|---|
private void |
addSocket(DatagramSocket socket,
InetSocketAddress remoteAddress)
Adds a new Socket to this candidate, which is associated
with a particular remote address.
|
void |
free()
Frees resources allocated by this candidate such as its
DatagramSocket, for example.
|
protected IceSocketWrapper |
getCandidateIceSocketWrapper(SocketAddress remoteAddress) |
createStunDatagramPacketFilter, getCandidateIceSocketWrapper
findRelatedCandidate, 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 String ufrag
private boolean freed
private final Map<SocketAddress,IceSocketWrapper> candidateSockets
There are wrappers over MultiplexedDatagramSockets over
a corresponding socket in sockets
.
private final Map<SocketAddress,DatagramSocket> sockets
These are the "raw" sockets, before any wrappers are added for the STUN stack or the user of ice4j.
private MyCandidate(Component component, String ufrag)
component
- the Component for which this candidate will
serve.ufrag
- the local ICE username fragment for this candidate (and
its Component and Agent).public void free()
Closes all sockets in use by this LocalCandidate.
free
in class LocalCandidate
private void addSocket(DatagramSocket socket, InetSocketAddress remoteAddress) throws IOException
socket
- the socket to add.remoteAddress
- the remote address for the socket.IOException
protected IceSocketWrapper getCandidateIceSocketWrapper(SocketAddress remoteAddress)
getCandidateIceSocketWrapper
in class LocalCandidate
remoteAddress
- the remote address for which to return an
associated socket.IceSocketWrapper
instance for this candidate,
associated with a particular remote address.Copyright © 2018. All rights reserved.