org.lastbamboo.common.offer.answer
Class AnswererOfferAnswerListener

java.lang.Object
  extended by org.lastbamboo.common.offer.answer.AnswererOfferAnswerListener
All Implemented Interfaces:
OfferAnswerListener<Socket>

public class AnswererOfferAnswerListener
extends Object
implements OfferAnswerListener<Socket>

Class that listens for creation of sockets on the server/answerer side.


Constructor Summary
AnswererOfferAnswerListener(String id, InetSocketAddress plainTextRelayAddress, org.littleshoot.util.SessionSocketListener callSocketListener, String offer)
          Creates a new listener for RUDP server sockets.
 
Method Summary
 void onOfferAnswerFailed(OfferAnswer offerAnswer)
          Called when an offer/answer exchange failed, with definitions of failure depending on the specific type of offer/answer.
 void onTcpSocket(Socket sock)
           
 void onUdpSocket(Socket sock)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnswererOfferAnswerListener

public AnswererOfferAnswerListener(String id,
                                   InetSocketAddress plainTextRelayAddress,
                                   org.littleshoot.util.SessionSocketListener callSocketListener,
                                   String offer)
                            throws OfferAnswerConnectException
Creates a new listener for RUDP server sockets. These get past along to a socket processing class.

Parameters:
id - The ID of the incoming "caller."
plainTextRelayAddress - The address to relay data to.
callSocketListener - The listener for incoming calls.
offer - The raw offer.
Throws:
OfferAnswerConnectException - If there's an error parsing the SDP
Method Detail

onOfferAnswerFailed

public void onOfferAnswerFailed(OfferAnswer offerAnswer)
Description copied from interface: OfferAnswerListener
Called when an offer/answer exchange failed, with definitions of failure depending on the specific type of offer/answer.

Specified by:
onOfferAnswerFailed in interface OfferAnswerListener<Socket>
Parameters:
offerAnswer - The OfferAnswer that failed.

onTcpSocket

public void onTcpSocket(Socket sock)
Specified by:
onTcpSocket in interface OfferAnswerListener<Socket>

onUdpSocket

public void onUdpSocket(Socket sock)
Specified by:
onUdpSocket in interface OfferAnswerListener<Socket>


Copyright © 2013 LittleShoot. All Rights Reserved.