public class SocketUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected VMDebugCore |
debugCore |
Constructor and Description |
---|
SocketUtil(VMDebugCore debugCore) |
Modifier and Type | Method and Description |
---|---|
boolean |
close(java.io.InputStream is) |
boolean |
close(java.io.OutputStream os) |
boolean |
close(java.net.ServerSocket socket) |
boolean |
close(java.net.Socket socket) |
static int |
findFreePort()
Returns a free port number on localhost, or -1 if unable to find a free port.
|
@NonNull protected final VMDebugCore debugCore
public SocketUtil(@NonNull VMDebugCore debugCore)
public static int findFreePort()
public boolean close(java.net.Socket socket)
public boolean close(java.net.ServerSocket socket)
public boolean close(java.io.InputStream is)
public boolean close(java.io.OutputStream os)