org.lastbamboo.common.ice
Class BarchartUdtSocketFactory

java.lang.Object
  extended by org.lastbamboo.common.ice.BarchartUdtSocketFactory
All Implemented Interfaces:
UdpSocketFactory<Socket>

public class BarchartUdtSocketFactory
extends Object
implements UdpSocketFactory<Socket>

Factory for creating UDT sockets.


Constructor Summary
BarchartUdtSocketFactory(SocketFactory sslSocketFactory)
           
 
Method Summary
 void newEndpoint(org.littleshoot.mina.common.IoSession session, boolean controlling, org.lastbamboo.common.offer.answer.OfferAnswerListener<Socket> socketListener, IceStunUdpPeer stunUdpPeer, IceAgent iceAgent)
          Creates a NAT/firewall traversed endpoint, notifying the listener when the channel is available.
protected  void openClientSocket(org.littleshoot.mina.common.IoSession session, org.lastbamboo.common.offer.answer.OfferAnswerListener<Socket> socketListener)
           
protected  void openServerSocket(org.littleshoot.mina.common.IoSession session, org.lastbamboo.common.offer.answer.OfferAnswerListener<Socket> socketListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarchartUdtSocketFactory

public BarchartUdtSocketFactory(SocketFactory sslSocketFactory)
Method Detail

newEndpoint

public void newEndpoint(org.littleshoot.mina.common.IoSession session,
                        boolean controlling,
                        org.lastbamboo.common.offer.answer.OfferAnswerListener<Socket> socketListener,
                        IceStunUdpPeer stunUdpPeer,
                        IceAgent iceAgent)
Description copied from interface: UdpSocketFactory
Creates a NAT/firewall traversed endpoint, notifying the listener when the channel is available.

Specified by:
newEndpoint in interface UdpSocketFactory<Socket>
Parameters:
session - The MINA session to create the socket from.
controlling - Whether or not the caller is the controlling ICE agent.
socketListener - The listener for the socket.
stunUdpPeer - The STUN UDP peer class.
iceAgent - The high level ICE agent.

openClientSocket

protected void openClientSocket(org.littleshoot.mina.common.IoSession session,
                                org.lastbamboo.common.offer.answer.OfferAnswerListener<Socket> socketListener)
                         throws IOException
Throws:
IOException

openServerSocket

protected void openServerSocket(org.littleshoot.mina.common.IoSession session,
                                org.lastbamboo.common.offer.answer.OfferAnswerListener<Socket> socketListener)
                         throws IOException
Throws:
IOException


Copyright © 2013 LittleShoot. All Rights Reserved.