|
Eclipse JDT Release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jdt.launching.SocketUtil
Utility class to find a port to debug on.
| Constructor Summary | |
SocketUtil()
|
|
| Method Summary | |
static int |
findFreePort()
Returns a free port number on localhost, or -1 if unable to find a free port. |
static int |
findUnusedLocalPort(String host,
int searchFrom,
int searchTo)
Deprecated. Use findFreePort() instead. It is possible that this
method can return a port that is already in use since the implementation does
not bind to the given port to ensure that it is free. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SocketUtil()
| Method Detail |
public static int findUnusedLocalPort(String host,
int searchFrom,
int searchTo)
findFreePort() instead. It is possible that this
method can return a port that is already in use since the implementation does
not bind to the given port to ensure that it is free.
host - name or IP addres of host on which to find a free portsearchFrom - the port number from which to start searchingsearchTo - the port number at which to stop searching
public static int findFreePort()
|
Eclipse JDT Release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||