org.lastbamboo.common.ice
Class IceOfferAnswerFactory<T>
java.lang.Object
org.lastbamboo.common.ice.IceOfferAnswerFactory<T>
- All Implemented Interfaces:
- org.lastbamboo.common.offer.answer.OfferAnswerFactory<T>
public class IceOfferAnswerFactory<T>
- extends Object
- implements org.lastbamboo.common.offer.answer.OfferAnswerFactory<T>
Class for creating ICE agents that process ICE offers and answers.
|
Method Summary |
org.lastbamboo.common.offer.answer.OfferAnswer |
createAnswerer(org.lastbamboo.common.offer.answer.OfferAnswerListener<T> offerAnswerListener,
boolean useRelay)
|
org.lastbamboo.common.offer.answer.OfferAnswer |
createOfferer(org.lastbamboo.common.offer.answer.OfferAnswerListener<T> offerAnswerListener,
org.lastbamboo.common.offer.answer.IceMediaStreamDesc desc)
|
int |
getMappedPort()
|
boolean |
isAnswererPortMapped()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IceOfferAnswerFactory
public IceOfferAnswerFactory(IceMediaStreamFactory mediaStreamFactory,
UdpSocketFactory<T> udpSocketFactory,
org.littleshoot.util.CandidateProvider<InetSocketAddress> turnCandidateProvider,
MappedServerSocket answererServer,
org.lastbamboo.common.turn.client.TurnClientListener turnClientListener,
org.littleshoot.util.CandidateProvider<InetSocketAddress> stunCandidateProvider,
MappedTcpOffererServerPool offererServer,
SocketFactory socketFactory)
- Creates a new ICE agent factory. The factory maintains a reference to
the TCP TURN client because the client holds a persistent connection
to the TURN server and is used across all ICE sessions.
- Parameters:
mediaStreamFactory - The factory for creating ICE media streams.udpSocketFactory - Factory for creating reliable UDP sockets.streamDesc - Data for the type of stream to create, such as TCP,
UPD, or either.answererServer - The single router port-mapped server socket for
when we're the answerer.stunCandidateProvider - Provider for STUN servers.offererServer - The pool of mapped servers to send from the
offering side.
createAnswerer
public org.lastbamboo.common.offer.answer.OfferAnswer createAnswerer(org.lastbamboo.common.offer.answer.OfferAnswerListener<T> offerAnswerListener,
boolean useRelay)
throws org.lastbamboo.common.offer.answer.OfferAnswerConnectException
- Specified by:
createAnswerer in interface org.lastbamboo.common.offer.answer.OfferAnswerFactory<T>
- Throws:
org.lastbamboo.common.offer.answer.OfferAnswerConnectException
createOfferer
public org.lastbamboo.common.offer.answer.OfferAnswer createOfferer(org.lastbamboo.common.offer.answer.OfferAnswerListener<T> offerAnswerListener,
org.lastbamboo.common.offer.answer.IceMediaStreamDesc desc)
throws org.lastbamboo.common.offer.answer.OfferAnswerConnectException
- Specified by:
createOfferer in interface org.lastbamboo.common.offer.answer.OfferAnswerFactory<T>
- Throws:
org.lastbamboo.common.offer.answer.OfferAnswerConnectException
isAnswererPortMapped
public boolean isAnswererPortMapped()
- Specified by:
isAnswererPortMapped in interface org.lastbamboo.common.offer.answer.OfferAnswerFactory<T>
getMappedPort
public int getMappedPort()
- Specified by:
getMappedPort in interface org.lastbamboo.common.offer.answer.OfferAnswerFactory<T>
Copyright © 2013 LittleShoot. All Rights Reserved.