org.lastbamboo.common.ice.candidate
Class UdpIceCandidateGatherer

java.lang.Object
  extended by org.lastbamboo.common.ice.candidate.UdpIceCandidateGatherer
All Implemented Interfaces:
IceCandidateGatherer

public class UdpIceCandidateGatherer
extends Object
implements IceCandidateGatherer

Gathers UDP ICE candidates.


Constructor Summary
UdpIceCandidateGatherer(org.lastbamboo.common.stun.client.StunClient udpStunClient, boolean controlling, org.lastbamboo.common.offer.answer.IceMediaStreamDesc desc)
          Creates a new class for gathering ICE candidates.
 
Method Summary
 void close()
          Close any resources associated with the gatherer.
 Collection<IceCandidate> gatherCandidates()
          Gathers ICE candidates.
 InetAddress getPublicAddress()
          Accessor for the public address of the machine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UdpIceCandidateGatherer

public UdpIceCandidateGatherer(org.lastbamboo.common.stun.client.StunClient udpStunClient,
                               boolean controlling,
                               org.lastbamboo.common.offer.answer.IceMediaStreamDesc desc)
Creates a new class for gathering ICE candidates.

Parameters:
udpStunClient - The client for connecting to the STUN server. This will also handle peer reflexive connectivity checks.
controlling - Whether or not this is the controlling agent at the start of processing.
desc - The description of the media stream to create.
Method Detail

gatherCandidates

public Collection<IceCandidate> gatherCandidates()
Description copied from interface: IceCandidateGatherer
Gathers ICE candidates.

Specified by:
gatherCandidates in interface IceCandidateGatherer
Returns:
The Collection of gathered candidates.

getPublicAddress

public InetAddress getPublicAddress()
Description copied from interface: IceCandidateGatherer
Accessor for the public address of the machine.

Specified by:
getPublicAddress in interface IceCandidateGatherer
Returns:
The public address of the machine.

close

public void close()
Description copied from interface: IceCandidateGatherer
Close any resources associated with the gatherer.

Specified by:
close in interface IceCandidateGatherer


Copyright © 2013 LittleShoot. All Rights Reserved.