|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.common.net.SocketFactory
fr.dyade.aaa.common.net.SocketFactory13
public class SocketFactory13
This class implements the SocketFactory interface for JDK prior to 1.4.
Field Summary | |
---|---|
(package private) static SocketFactory |
factory
The SocketFactory singleton for this class. |
Fields inherited from class fr.dyade.aaa.common.net.SocketFactory |
---|
DefaultFactory, logger |
Constructor Summary | |
---|---|
SocketFactory13()
|
Method Summary | |
---|---|
java.net.Socket |
createSocket(java.net.InetAddress addr,
int port,
java.net.InetAddress localAddr,
int localPort,
int timeout)
Creates a socket and connects it to the specified remote host on the specified remote port. |
java.net.Socket |
createSocket(java.net.InetAddress addr,
int port,
int timeout)
Creates a stream socket and connects it to the specified port number at the specified IP address. |
static SocketFactory |
getFactory()
Returns the SocketFactory singleton for this class. |
Methods inherited from class fr.dyade.aaa.common.net.SocketFactory |
---|
getDefaultFactory, getFactory, getSocketFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static SocketFactory factory
Constructor Detail |
---|
public SocketFactory13()
Method Detail |
---|
public static SocketFactory getFactory()
public java.net.Socket createSocket(java.net.InetAddress addr, int port, int timeout) throws java.io.IOException
Be careful, currently the timeout option is not implemented. If the specified timeout is not equals to 0 this method throws an UnsupportedOperationException.
createSocket
in class SocketFactory
addr
- the IP address.port
- the port number.timeout
- the timeout value to be used in milliseconds.
java.io.IOException
public java.net.Socket createSocket(java.net.InetAddress addr, int port, java.net.InetAddress localAddr, int localPort, int timeout) throws java.io.IOException
Be careful, currently the timeout option is not implemented. If the specified timeout is not equals to 0 this method throws an UnsupportedOperationException.
createSocket
in class SocketFactory
addr
- the IP address of the remote hostport
- the remote portlocalAddr
- the local address the socket is bound tolocalPort
- the local port the socket is bound totimeout
- the timeout value to be used in milliseconds.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |