|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jonathan.libs.resources.tcpip.IPv4ConnectionFactory
Implementation of an IP V4 connection factory.
| Field Summary | |
int |
backlog
Maximum length of the queue on incoming connect requests. |
String |
localhost_name
|
int |
SO_LINGER
If >= 0, enables the SO_LINGER option with the specified linger time. |
int |
SO_TIMEOUT
If >= 0, enables the SO_TIMEOUT option with the specified timeout (in ms). 0 means infinity (no timeout). |
boolean |
TCP_NODELAY
If true, enables the TCP_NODELAY option. |
boolean |
use_address_as_name
Indicates whether the names used to identify endpoints should be host names or host addresses. |
boolean |
verbose
Indicates whether warning messages should be printed to stderr. |
| Method Summary | |
String |
getCanonicalHostName(String hostname)
Returns the canonical host name corresponding to hostname. |
IpConnection |
newCltConnection(String host,
int port,
IpSession session)
Builds a new client-side connection with the provided parameters. |
protected org.objectweb.jonathan.libs.resources.tcpip.IPv4ConnectionFactory.Connection |
newSrvConnection(Socket socket,
IpSession session,
String host,
int port)
Builds a new server-side connection with the provided parameters. |
TcpIpSrvConnectionFactory |
newSrvConnectionFactory(int port)
Returns a new server connection factory encapsulating a server socket on the provided port. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public String localhost_name
public boolean verbose
public boolean use_address_as_name
public int SO_LINGER
public int SO_TIMEOUT
public boolean TCP_NODELAY
public int backlog
| Method Detail |
public IpConnection newCltConnection(String host,
int port,
IpSession session)
throws JonathanException
newCltConnection in interface TcpIpConnectionMgrhost - a host name;port - a port number;session - a TCP/IP session;JonathanException - if something goes wrong.
public TcpIpSrvConnectionFactory newSrvConnectionFactory(int port)
throws JonathanException
newSrvConnectionFactory in interface TcpIpConnectionMgrport - the expected port of the server socket;JonathanException - if an error occurs.public String getCanonicalHostName(String hostname)
getCanonicalHostName in interface TcpIpConnectionMgrhostname - a host name.
protected org.objectweb.jonathan.libs.resources.tcpip.IPv4ConnectionFactory.Connection newSrvConnection(Socket socket,
IpSession session,
String host,
int port)
throws JonathanException
socket - a TCP/IP socket;session - a TCP/IP session;host - a host name;port - a port number;JonathanException - if something goes wrong.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||