|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TcpIpConnectionMgr
This interface defines a type for Tcp/Ip connection managers.
| Method Summary | |
|---|---|
java.lang.String |
getCanonicalHostName(java.lang.String hostname)
Returns the canonical host name of the provided host. |
IpConnection |
newCltConnection(java.lang.String host,
int port,
IpSession session)
Returns a new client connection. |
TcpIpSrvConnectionFactory |
newSrvConnectionFactory(int port)
Returns a new server connection factory encapsulating a server socket on the provided port. |
| Method Detail |
|---|
IpConnection newCltConnection(java.lang.String host,
int port,
IpSession session)
throws JonathanException
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.
host - the host name of the distant server;port - the port number of a server socket on that host;session - a TcpIp session
JonathanException - if an error occurs.
TcpIpSrvConnectionFactory newSrvConnectionFactory(int port)
throws JonathanException
port - the expected port of the server socket;
JonathanException - if an error occurs.java.lang.String getCanonicalHostName(java.lang.String hostname)
hostname - a host name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||