|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.net.TimedSocket
public abstract class TimedSocket
Because java doesn't have the ability to timeout on a connection, this does.
| Method Summary | |
|---|---|
static java.net.Socket |
getSocket(java.net.InetAddress addr,
int port,
int delay)
Connect to a given host and port for a bit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.net.Socket getSocket(java.net.InetAddress addr,
int port,
int delay)
throws IOTimeoutException,
java.io.IOException
addr - Address of hostport - Port of servicedelay - Delay in milliseconds
IOTimeoutException - if there's a timeout connecting
java.io.IOException - for other failures connecting
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||