public class FreePortLocator extends Object
| Constructor and Description |
|---|
FreePortLocator(String hostname,
int portStart,
int portEnd)
Constructor identifying the interface and the port range within which
to look for free ports.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPortEnd() |
int |
getPortStart() |
int |
next()
Returns the next free port.
|
void |
skip(int num)
Skip a number of ports.
|
public FreePortLocator(String hostname, int portStart, int portEnd)
public int getPortStart()
public int getPortEnd()
public int next()
public void skip(int num)
Copyright © 2024. All rights reserved.