|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanon.util.SocketFactory
public class SocketFactory
This is an implementation to make the Socket creation process interruptable which offers also the opportunity to set a timeout for this process. Both possibilities are not available in the default Java Socket implementation.
| Constructor Summary | |
|---|---|
SocketFactory()
|
|
| Method Summary | |
|---|---|
static java.net.Socket |
createSocket(java.lang.String a_hostName,
int a_port,
long a_createTimeout)
Creates a new Socket. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketFactory()
| Method Detail |
|---|
public static java.net.Socket createSocket(java.lang.String a_hostName,
int a_port,
long a_createTimeout)
throws java.lang.Exception
a_hostName - The hostname of the target or null for the loopback interface
(see java.net.Socket).a_port - The port of the target.a_createTimeout - The timeout for creating the new Socket in milliseconds. A timeout of
0 means to wait forever (until Socket creation is ready).
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||