org.lastbamboo.common.ice
Class UdtSocketFactory

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

public class UdtSocketFactory
extends Object
implements UdpSocketFactory<Socket>

Factory for creating UDT sockets.


Nested Class Summary
static class UdtSocketFactory.RequestRunner
           
 
Constructor Summary
UdtSocketFactory()
           
 
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

UdtSocketFactory

public UdtSocketFactory()
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 InterruptedException,
                                IOException
Throws:
InterruptedException
IOException

openServerSocket

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


Copyright © 2013 LittleShoot. All Rights Reserved.