Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

TcpIpSrvConnectionFactory Interface Reference

Inheritance diagram for TcpIpSrvConnectionFactory:

Inheritance graph
[legend]
List of all members.

Public Methods

IpConnection newSrvConnection (IpSession session) throws JonathanException
int getPort ()
String getHostName ()
void close ()

Detailed Description

TcpIpSrvConnectionFactory encapsulates a server socket.

Definition at line 35 of file TcpIpSrvConnectionFactory.java.


Member Function Documentation

void TcpIpSrvConnectionFactory::close ( )
 

Tells the factory to release the server socket.

Reimplemented in SrvConnectionFactory, IPv4ConnectionFactory::SrvConnectionFactory, and JConnectionMgr::SrvConnectionFactory.

Referenced by JConnectionMgr::SrvConnectionFactory::close(), SrvConnectionFactory::close(), and TcpIpProtocol::SrvSessionId::unexport().

String TcpIpSrvConnectionFactory::getHostName ( )
 

Returns the host name of the encapsulated socket.

Returns:
the host name of the encapsulated socket.

Reimplemented in SrvConnectionFactory, IPv4ConnectionFactory::SrvConnectionFactory, and JConnectionMgr::SrvConnectionFactory.

Referenced by TcpIpProtocol::SrvSessionId::SrvSessionId(), JConnectionMgr::SrvConnectionFactory::getHostName(), and SrvConnectionFactory::getHostName().

int TcpIpSrvConnectionFactory::getPort ( )
 

Returns the local port of the encapsulated socket.

Returns:
the local port of the encapsulated socket.

Reimplemented in SrvConnectionFactory, IPv4ConnectionFactory::SrvConnectionFactory, and JConnectionMgr::SrvConnectionFactory.

Referenced by TcpIpProtocol::SrvSessionId::SrvSessionId(), JConnectionMgr::SrvConnectionFactory::getPort(), and SrvConnectionFactory::getPort().

IpConnection TcpIpSrvConnectionFactory::newSrvConnection ( IpSession session )
 

Returns a new connection for the provided session, obtained from the encapuslated server socket.

Parameters:
session   an IpSession.
Returns:
a new IpConnection.
Exceptions:
JonathanException   if an error occurs.

Reimplemented in SrvConnectionFactory, IPv4ConnectionFactory::SrvConnectionFactory, and JConnectionMgr::SrvConnectionFactory.

Referenced by JConnectionMgr::SrvConnectionFactory::newSrvConnection(), SrvConnectionFactory::newSrvConnection(), and TcpIpProtocol::SrvSessionFactory::run().


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