public final class SocketUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getFreePort()
Gets a free port on localhost for binding to.
|
public static int getFreePort()
throws IOException
IOException - When there is a failure getting a free portCopyright © 2016. All Rights Reserved.