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


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 |
Definition at line 31 of file SocketFactory13.java.
| static SocketFactory fr.dyade.aaa.util.SocketFactory13.getFactory | ( | ) | [static] |
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.
| 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.
| 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.
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().
1.5.0