org.lastbamboo.common.ice.transport
Class IceTcpConnector

java.lang.Object
  extended by org.lastbamboo.common.ice.transport.IceTcpConnector
All Implemented Interfaces:
IceConnector

public class IceTcpConnector
extends Object
implements IceConnector

Class for establishing TCP connections for ICE.


Constructor Summary
IceTcpConnector(org.littleshoot.stun.stack.message.StunMessageVisitorFactory messageVisitorFactory, boolean controlling)
          Creates a new connector for connecting to the remote address.
 
Method Summary
 void addIoServiceListener(org.littleshoot.mina.common.IoServiceListener serviceListener)
          Adds the specified IoServiceListener to connections created with this connector.
 org.littleshoot.mina.common.IoSession connect(InetSocketAddress localAddress, InetSocketAddress remoteAddress)
          Creates a new connection from the specified local address to the specified remote address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IceTcpConnector

public IceTcpConnector(org.littleshoot.stun.stack.message.StunMessageVisitorFactory messageVisitorFactory,
                       boolean controlling)
Creates a new connector for connecting to the remote address.

Parameters:
messageVisitorFactory - The class for visiting received STUN messages.
controlling - Whether or not this agent is controlling.
Method Detail

connect

public org.littleshoot.mina.common.IoSession connect(InetSocketAddress localAddress,
                                                     InetSocketAddress remoteAddress)
Description copied from interface: IceConnector
Creates a new connection from the specified local address to the specified remote address.

Specified by:
connect in interface IceConnector
Parameters:
localAddress - The local address to connect from.
remoteAddress - The remote address to connect to.
Returns:
The MINA IoSession for the connection.

addIoServiceListener

public void addIoServiceListener(org.littleshoot.mina.common.IoServiceListener serviceListener)
Description copied from interface: IceConnector
Adds the specified IoServiceListener to connections created with this connector.

Specified by:
addIoServiceListener in interface IceConnector
Parameters:
serviceListener - The listener to be notified of connection events.


Copyright © 2013 LittleShoot. All Rights Reserved.