public class SocketUtils extends java.lang.Object
Constructor and Description |
---|
SocketUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
getFreePort()
Returns a new free TCP port number
|
static boolean |
isFreePort(int portNumber)
Checks whether the given TCP port is available.
|
public SocketUtils()
public static boolean isFreePort(int portNumber)
public static int getFreePort() throws java.io.IOException
java.io.IOException