public final class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
byte2int(byte b) |
static @Nullable InetAddress |
calcInetAddress(byte[] addr) |
static int |
calcPort(byte Hi,
byte Lo) |
static int |
getFreePort() |
static @NotNull String |
getSocketInfo(DatagramPacket DGP) |
static @NotNull String |
getSocketInfo(Socket sock) |
static @NotNull String |
iP2Str(InetAddress IP) |
static boolean |
isLocalPortAvailableToConnect(int port) |
@Nullable public static @Nullable InetAddress calcInetAddress(byte[] addr)
public static int byte2int(byte b)
public static int calcPort(byte Hi,
byte Lo)
@NotNull public static @NotNull String iP2Str(InetAddress IP)
@NotNull public static @NotNull String getSocketInfo(DatagramPacket DGP)
public static int getFreePort()
public static boolean isLocalPortAvailableToConnect(int port)
Copyright © 2019–2024. All rights reserved.