Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

TcpIpConnectionMgr Interface Reference

Inheritance diagram for TcpIpConnectionMgr:

Inheritance graph
[legend]
List of all members.

Public Methods

IpConnection newCltConnection (String host, int port, IpSession session) throws JonathanException
TcpIpSrvConnectionFactory newSrvConnectionFactory (int port) throws JonathanException
String getCanonicalHostName (String hostname)

Detailed Description

This interface defines a type for Tcp/Ip connection managers.

Definition at line 35 of file TcpIpConnectionMgr.java.


Member Function Documentation

String TcpIpConnectionMgr::getCanonicalHostName ( String hostname )
 

Returns the canonical host name of the provided host.

The purpose of this method is to help checking the equality of two host names. Two names corresponding to the same host should have the same (the "sameness" being defined by the equals method on type String) canonical names.

Parameters:
hostname   a host name
Returns:
the corresponding canonical host name.

Reimplemented in GIOPConnectionFactory, IPv4ConnectionFactory, and JConnectionMgr.

Referenced by JConnectionMgr::getCanonicalHostName(), GIOPConnectionFactory::getCanonicalHostName(), TcpIpProtocol::isLocal(), and JConnectionMgr::newCltConnection().

IpConnection TcpIpConnectionMgr::newCltConnection ( String host,
int port,
IpSession session )
 

Returns a new client connection.

This method is called by a protocol. The protocol provides a session (i.e. an object representing an abstract communication channel) and expects a connection (i.e. a communication resource). The returned connection must have been built using the provided session, or be a connection associated with a session having the same destination as the provided session.

Parameters:
host   the host name of the distant server;
port   the port number of a server socket on that host;
session   a TcpIp session
Returns:
a connection for that session.
Exceptions:
JonathanException   if an error occurs.

Reimplemented in GIOPConnectionFactory, IPv4ConnectionFactory, and JConnectionMgr.

Referenced by TcpIpProtocol::CltSessionIdentifier::bind(), JConnectionMgr::newCltConnection(), GIOPConnectionFactory::newCltConnection(), and TcpIpProtocol::CltSession::rebind().

TcpIpSrvConnectionFactory TcpIpConnectionMgr::newSrvConnectionFactory ( int port )
 

Returns a new server connection factory encapsulating a server socket on the provided port. If port = 0, an anonymous server socket is opened.

Parameters:
port   the expected port of the server socket;
Returns:
a server connection factory.
Exceptions:
JonathanException   if an error occurs.

Reimplemented in GIOPConnectionFactory, IPv4ConnectionFactory, and JConnectionMgr.

Referenced by TcpIpProtocol::TcpIpProtocolGraph::export(), JConnectionMgr::newSrvConnectionFactory(), and GIOPConnectionFactory::newSrvConnectionFactory().


The documentation for this interface was generated from the following file:
Generated at Fri May 31 19:25:33 2002 for Jonathan by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001