edu.cuny.cat.comm
Class SocketBasedCatpClientConnector

java.lang.Object
  extended by edu.cuny.cat.comm.SocketBasedCatpClientConnector
All Implemented Interfaces:
ClientConnector<CatpMessage>, Connector

public class SocketBasedCatpClientConnector
extends java.lang.Object
implements ClientConnector<CatpMessage>

The implementation of ClientConnector when SocketBasedInfrastructureImpl is used.

Version:
$Revision: 1.15 $
Author:
Jinzhong Niu

Constructor Summary
SocketBasedCatpClientConnector()
           
 
Method Summary
 Connection<CatpMessage> connect()
          connects to the catp server whose address and port number are defined in the current SocketBasedInfrastructureImpl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketBasedCatpClientConnector

public SocketBasedCatpClientConnector()
Method Detail

connect

public Connection<CatpMessage> connect()
                                throws ConnectionException
connects to the catp server whose address and port number are defined in the current SocketBasedInfrastructureImpl.

Specified by:
connect in interface ClientConnector<CatpMessage>
Returns:
an instance of SocketBasedCatpConnection.
Throws:
ConnectionException