Package | Description |
---|---|
org.ice4j.ice | |
org.ice4j.ice.harvest | |
org.ice4j.socket |
Modifier and Type | Field and Description |
---|---|
private Component |
ComponentSocket.component
The owning
Component . |
private Component |
Candidate.parentComponent
The component that this candidate was created for.
|
Modifier and Type | Field and Description |
---|---|
private Map<Integer,Component> |
IceMediaStream.components
Returns the list of components that this media stream consists of.
|
Modifier and Type | Method and Description |
---|---|
static Component |
Component.build(int componentID,
IceMediaStream mediaStream)
Use builder pattern to allow creation of immutable Component instances,
from outside the current package.
|
Component |
Agent.createComponent(IceMediaStream stream,
Transport transport,
int preferredPort,
int minPort,
int maxPort)
Creates a new
Component for the specified stream and
allocates potentially all local candidates that should belong to it. |
Component |
Agent.createComponent(IceMediaStream stream,
Transport transport,
int preferredPort,
int minPort,
int maxPort,
KeepAliveStrategy keepAliveStrategy)
Creates a new
Component for the specified stream and
allocates potentially all local candidates that should belong to it. |
Component |
Agent.createComponent(IceMediaStream stream,
Transport transport,
int preferredPort,
int minPort,
int maxPort,
KeepAliveStrategy keepAliveStrategy,
boolean useComponentSocket)
Creates a new
Component for the specified stream and
allocates potentially all local candidates that should belong to it. |
protected Component |
IceMediaStream.createComponent(KeepAliveStrategy keepAliveStrategy,
boolean useComponentSocket)
Creates and adds a component to this media-stream
The component ID is incremented to the next integer value
when creating the component so make sure you keep that in mind in case
assigning a specific component ID is important to you.
|
Component |
IceMediaStream.getComponent(int id)
Returns the Component with the specified id or
null if no such component exists in this stream.
|
Component |
Candidate.getParentComponent()
Returns a reference to the Component that this candidate belongs
to.
|
Component |
CandidatePair.getParentComponent()
Returns the Component that this pair belongs to.
|
Modifier and Type | Method and Description |
---|---|
List<Component> |
IceMediaStream.getComponents()
Returns the list of Components currently registered with this
stream.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CheckList.containsNomineeForComponent(Component component)
Deprecated.
This method takes into account only candidates in the
checklist. In case of peer reflexives candidates nominated, they do not
appears in checklist but in valid list.
|
private void |
IceMediaStream.createCheckList(Component component,
List<CandidatePair> checkList)
Creates and adds to checkList all the CandidatePairs
in component.
|
private void |
Agent.gatherCandidates(Component component,
int preferredPort,
int minPort,
int maxPort)
Uses all CandidateHarvesters currently registered with this
Agent to obtain whatever addresses they can discover.
|
protected CandidatePair |
IceMediaStream.getValidPair(Component component)
Returns the first
CandidatePair stored in this stream's valid
list, that belongs to the specified component. |
void |
IceMediaStream.removeComponent(Component component)
Removes component and all its Candidates from the
this stream and releases all associated resources that they had
allocated (like sockets for example)
|
protected boolean |
IceMediaStream.validListContainsNomineeForComponent(Component component)
Returns true if this stream's validList contains a
pair that is nominated for the specified Component and
false otherwise.
|
Constructor and Description |
---|
Candidate(TransportAddress transportAddress,
Component parentComponent,
CandidateType type,
T relatedCandidate)
Creates a candidate for the specified transport address and properties.
|
ComponentSocket(Component component,
Logger levelDelegate)
Initializes a new
MergingDatagramSocket instance. |
HostCandidate(IceSocketWrapper socket,
Component parentComponent)
Creates a HostCandidate for the specified transport address.
|
HostCandidate(IceSocketWrapper socket,
Component parentComponent,
Transport transport)
Creates a HostCandidate for the specified transport address.
|
HostCandidate(TransportAddress transportAddress,
Component parentComponent)
Creates a HostCandidate for the specified transport address.
|
LocalCandidate(TransportAddress transportAddress,
Component parentComponent,
CandidateType type,
CandidateExtendedType extendedType,
LocalCandidate relatedCandidate)
Creates a LocalCandidate instance for the specified transport
address and properties.
|
PeerReflexiveCandidate(TransportAddress transportAddress,
Component parentComponent,
LocalCandidate base,
long priority)
Creates a PeerReflexiveCandidate instance for the specified
transport address and properties.
|
RemoteCandidate(TransportAddress transportAddress,
Component parentComponent,
CandidateType type,
String foundation,
long priority,
RemoteCandidate relatedCandidate)
Creates a RemoteCandidate instance for the specified transport
address and properties.
|
RemoteCandidate(TransportAddress transportAddress,
Component parentComponent,
CandidateType type,
String foundation,
long priority,
RemoteCandidate relatedCandidate,
String ufrag)
Creates a RemoteCandidate instance for the specified transport
address and properties.
|
TcpHostCandidate(TransportAddress transportAddress,
Component parentComponent)
Initializes a new TcpHostCandidate.
|
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 | Field and Description |
---|---|
private Collection<Component> |
CandidateHarvesterSetTask.components
The
Component s whose addresses we will be harvesting in this
task. |
private Map<String,WeakReference<Component>> |
TcpHarvester.components
Maps a local "ufrag" to the single Component instance with that
"ufrag".
|
Modifier and Type | Method and Description |
---|---|
private Component |
TcpHarvester.getComponent(String localUfrag)
Returns the Component instance, if any, for a given local
"ufrag".
|
Modifier and Type | Method and Description |
---|---|
private void |
TcpHarvester.addSocketToComponent(Socket socket,
Component component,
DatagramPacket datagramPacket)
Makes socket available to component and pushes back
datagramPacket into the STUN socket.
|
private List<LocalCandidate> |
TcpHarvester.createLocalCandidates(Component component)
Creates and returns the list of LocalCandidates which are to be
added by this TcpHarvester to a specific
Component.
|
private IceSocketWrapper |
HostCandidateHarvester.createServerSocket(InetAddress laddr,
int preferredPort,
int minPort,
int maxPort,
Component component)
Creates a ServerSocket and binds it to the specified
localAddress and a port in the range specified by the
minPort and maxPort parameters.
|
private List<LocalCandidate> |
UPNPHarvester.createUPNPCandidate(IceSocketWrapper socket,
String externalIP,
int port,
Component component,
org.bitlet.weupnp.GatewayDevice device)
Create a UPnP candidate.
|
private TcpHostCandidate |
TcpHarvester.findCandidate(Component component,
Socket socket)
Searches among the local candidates of Component for a
TcpHostCandidate with the same transport address as the
local transport address of socket.
|
Collection<LocalCandidate> |
StunCandidateHarvester.harvest(Component component)
Gathers STUN candidates for all host Candidates that are already
present in the specified component.
|
Collection<LocalCandidate> |
SinglePortUdpHarvester.harvest(Component component)
Gathers all candidate addresses of the type that this
CandidateHarvester supports.
|
Collection<LocalCandidate> |
CandidateHarvester.harvest(Component component)
Gathers all candidate addresses of the type that this
CandidateHarvester supports.
|
Collection<LocalCandidate> |
MappingCandidateHarvester.harvest(Component component)
Maps all candidates to this harvester's mask and adds them to
component.
|
Collection<LocalCandidate> |
UPNPHarvester.harvest(Component component)
Gathers UPnP candidates for all host Candidates that are
already present in the specified component.
|
Collection<LocalCandidate> |
TcpHarvester.harvest(Component component)
Gathers all candidate addresses of the type that this
CandidateHarvester supports.
|
void |
CandidateHarvesterSet.harvest(Component component)
Gathers candidate addresses for a specific Component.
|
void |
HostCandidateHarvester.harvest(Component component,
int preferredPort,
int minPort,
int maxPort,
Transport transport)
Gathers all candidate addresses on the local machine, binds sockets on
them and creates
HostCandidate s. |
void |
CandidateHarvesterSetElement.harvest(Component component,
TrickleCallback trickleCallback)
Calls
CandidateHarvester.harvest(org.ice4j.ice.Component) on the
associated CandidateHarvester if enabled. |
Modifier and Type | Method and Description |
---|---|
private void |
CandidateHarvesterSet.harvest(Iterator<CandidateHarvesterSetElement> harvesters,
List<Component> components,
ExecutorService executorService,
TrickleCallback trickleCallback)
Gathers candidate addresses for a specific Component using
specific CandidateHarvesters.
|
void |
CandidateHarvesterSet.harvest(List<Component> components,
TrickleCallback trickleCallback)
Gathers candidate addresses for a specific Component.
|
Constructor and Description |
---|
MyCandidate(Component component,
String ufrag)
Initializes a new MyCandidate instance with the given
Component and the given local username fragment.
|
Constructor and Description |
---|
CandidateHarvesterSetTask(CandidateHarvesterSetElement harvester,
Collection<Component> components,
TrickleCallback trickleCallback)
Initializes a new CandidateHarvesterSetTask which is to
call
CandidateHarvester.harvest(org.ice4j.ice.Component) on a
specific harvester and then as many harvesters as possible. |
Modifier and Type | Field and Description |
---|---|
private Component |
IceTcpServerSocketWrapper.component
STUN stack.
|
Constructor and Description |
---|
IceTcpServerSocketWrapper(ServerSocket serverSocket,
Component component)
Initializes a new IceTcpServerSocketWrapper.
|
Copyright © 2018. All rights reserved.