public final class SocketUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Optional<Integer> |
findFreePort() |
static Optional<Integer> |
findFreePort(int from,
int to) |
static boolean |
isPortAvailable(int port) |
static byte[] |
read(@NonNull Socket socket) |
static byte[] |
read(@NonNull Socket socket,
int length) |
static Bytes |
readBytes(@NonNull Socket socket) |
static Bytes |
readBytes(@NonNull Socket socket,
int fixedLength) |
Copyright © 2019 Appulse. All rights reserved.