org.lastbamboo.common.ice
Class RawUdpSocketFactory

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

public class RawUdpSocketFactory
extends Object
implements UdpSocketFactory<Socket>

Factory for creating "sockets" that really just relay raw UDP data to the other side unreliably but that give the callers the Socket interface they require in certain cases. This is useful, for example, for VoIP apps that send all the data for a call via the browser or an app written in another language that sends all the voice data to LittleShoot through a local socket.


Constructor Summary
RawUdpSocketFactory()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawUdpSocketFactory

public RawUdpSocketFactory()
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.


Copyright © 2013 LittleShoot. All Rights Reserved.