fr.dyade.aaa.util.SocketFactory13 Class Reference

Inherits fr.dyade.aaa.util.SocketFactory.

Inheritance diagram for fr.dyade.aaa.util.SocketFactory13:

Inheritance graph
[legend]
Collaboration diagram for fr.dyade.aaa.util.SocketFactory13:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Socket createSocket (InetAddress addr, int port, int timeout) throws IOException
Socket createSocket (InetAddress addr, int port, InetAddress localAddr, int localPort, int timeout) throws IOException

Static Public Member Functions

static SocketFactory getFactory ()

Static Package Attributes

static SocketFactory factory

Detailed Description

This class implements the SocketFactory interface for JDK prior to 1.4.

Definition at line 31 of file SocketFactory13.java.


Member Function Documentation

static SocketFactory fr.dyade.aaa.util.SocketFactory13.getFactory (  )  [static]

Returns the SocketFactory singleton for this class.

Returns:
The SocketFactory singleton for this class.

Definition at line 42 of file SocketFactory13.java.

References fr.dyade.aaa.util.SocketFactory13.factory.

Socket fr.dyade.aaa.util.SocketFactory13.createSocket ( InetAddress  addr,
int  port,
int  timeout 
) throws IOException [virtual]

Creates a stream socket and connects it to the specified port number at the specified IP address. Try to establish the connection to the server with a specified timeout value. A timeout of zero is interpreted as an infinite timeout. The connection will then block until established or an error occurs.

Be careful, currently the timeout option is not implemented. If the specified timeout is not equals to 0 this method throws an UnsupportedOperationException.

Parameters:
addr the IP address.
port the port number.
timeout the timeout value to be used in milliseconds.

Implements fr.dyade.aaa.util.SocketFactory.

Definition at line 63 of file SocketFactory13.java.

Socket fr.dyade.aaa.util.SocketFactory13.createSocket ( InetAddress  addr,
int  port,
InetAddress  localAddr,
int  localPort,
int  timeout 
) throws IOException [virtual]

Creates a socket and connects it to the specified remote host on the specified remote port. The Socket will also bind() to the local address and port supplied. Try to establish the connection to the server with a specified timeout value. A timeout of zero is interpreted as an infinite timeout. The connection will then block until established or an error occurs.

Be careful, currently the timeout option is not implemented. If the specified timeout is not equals to 0 this method throws an UnsupportedOperationException.

Parameters:
addr the IP address of the remote host
port the remote port
localAddr the local address the socket is bound to
localPort the local port the socket is bound to
timeout the timeout value to be used in milliseconds.

Implements fr.dyade.aaa.util.SocketFactory.

Definition at line 91 of file SocketFactory13.java.


Member Data Documentation

SocketFactory fr.dyade.aaa.util.SocketFactory13.factory [static, package]

The SocketFactory singleton for this class.

Reimplemented from fr.dyade.aaa.util.SocketFactory.

Definition at line 35 of file SocketFactory13.java.

Referenced by fr.dyade.aaa.util.SocketFactory13.getFactory().


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:17:23 2008 for joram by  doxygen 1.5.0