public class Network extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
freeServerPort(InetAddress hostAddress) |
static int |
freeServerPort(InetAddress hostAddress,
int preferredPort) |
static int[] |
freeServerPorts(InetAddress hostAddress,
int poolSize) |
static int |
getFreeServerPort()
Deprecated.
|
static int |
getFreeServerPort(InetAddress hostAddress)
Deprecated.
|
static int[] |
getFreeServerPorts(InetAddress hostAddress,
int poolSize)
Deprecated.
|
static InetAddress |
getLocalHost() |
static int |
getPreferredFreeServerPort(InetAddress hostAddress,
int preferredPort)
Deprecated.
|
static int |
getPreferredFreeServerPort(int preferredPort)
Deprecated.
|
static boolean |
localhostIsIPv6() |
static int |
randomEntryOf(int[] ports)
Deprecated.
|
public static boolean localhostIsIPv6()
throws UnknownHostException
UnknownHostExceptionpublic static InetAddress getLocalHost() throws UnknownHostException
UnknownHostException@Deprecated public static int getPreferredFreeServerPort(int preferredPort) throws IOException
IOException@Deprecated public static int getFreeServerPort() throws IOException
IOException@Deprecated public static int getPreferredFreeServerPort(InetAddress hostAddress, int preferredPort) throws IOException
IOExceptionpublic static int freeServerPort(InetAddress hostAddress, int preferredPort) throws IOException
IOExceptionpublic static int freeServerPort(InetAddress hostAddress) throws IOException
IOException@Deprecated public static int getFreeServerPort(InetAddress hostAddress) throws IOException
IOException@Deprecated public static int randomEntryOf(int[] ports)
@Deprecated public static int[] getFreeServerPorts(InetAddress hostAddress, int poolSize) throws IOException
IOExceptionpublic static int[] freeServerPorts(InetAddress hostAddress, int poolSize) throws IOException
IOExceptionCopyright © 2022. All rights reserved.