|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectxsul.http_server.plain_impl.TcpPortRange
This class is based on code Cog (see license notice attached at the end of file).
| Constructor Summary | |
TcpPortRange(java.lang.String portRangeStr)
|
|
| Method Summary | |
void |
free(int portNumber)
Releases or frees the port number. |
int |
getFreePort(int lastPortNumber)
Returns first available port >= lastPortNumber; |
void |
setUsed(int portNumber)
Sets the port number as used. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TcpPortRange(java.lang.String portRangeStr)
| Method Detail |
public int getFreePort(int lastPortNumber)
throws java.io.IOException
lastPortNumber - port number to start finding the next
available port from. Set it to 0 if
called initialy.
java.io.IOExceptionpublic void setUsed(int portNumber)
portNumber - port numberpublic void free(int portNumber)
portNumber - port number
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||