org.activeio.net
Class DatagramSocketSyncChannelFactory

java.lang.Object
  extended by org.activeio.net.DatagramSocketSyncChannelFactory
All Implemented Interfaces:
SyncChannelFactory

public class DatagramSocketSyncChannelFactory
extends Object
implements SyncChannelFactory

A TcpSynchChannelFactory creates org.activeio.net.TcpSynchChannel and org.activeio.net.TcpSynchChannelServer objects.

Version:
$Revision$

Constructor Summary
DatagramSocketSyncChannelFactory()
           
 
Method Summary
 SyncChannelServer bindSyncChannel(URI location)
          Binds a server at the URI location.
protected  SyncChannel createSynchChannel(DatagramSocket socket)
           
 SyncChannel openSyncChannel(URI location)
          Uses the 's host and port to create a tcp connection to a remote host.
 SyncChannel openSynchChannel(URI location, URI localLocation)
          Uses the 's host and port to create a tcp connection to a remote host.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatagramSocketSyncChannelFactory

public DatagramSocketSyncChannelFactory()
Method Detail

openSyncChannel

public SyncChannel openSyncChannel(URI location)
                            throws IOException
Uses the 's host and port to create a tcp connection to a remote host.

Specified by:
openSyncChannel in interface SyncChannelFactory
Returns:
Throws:
IOException
See Also:
org.activeio.SynchChannelFactory#openSynchChannel(java.net.URI)

openSynchChannel

public SyncChannel openSynchChannel(URI location,
                                    URI localLocation)
                             throws IOException
Uses the 's host and port to create a tcp connection to a remote host.

Throws:
IOException

createSynchChannel

protected SyncChannel createSynchChannel(DatagramSocket socket)
                                  throws IOException
Parameters:
socket -
Returns:
Throws:
IOException

bindSyncChannel

public SyncChannelServer bindSyncChannel(URI location)
                                  throws IOException
Description copied from interface: SyncChannelFactory
Binds a server at the URI location.

Specified by:
bindSyncChannel in interface SyncChannelFactory
Returns:
Throws:
IOException - allways thrown.
See Also:
org.activeio.SynchChannelFactory#bindSynchChannel(java.net.URI)


Copyright © -2009 The ActiveIO Project. All Rights Reserved.