public class SocketUtil extends Object
Constructor and Description |
---|
SocketUtil(VMDebugCore debugCore) |
Modifier and Type | Method and Description |
---|---|
boolean |
close(InputStream is) |
boolean |
close(OutputStream os) |
boolean |
close(ServerSocket socket) |
boolean |
close(Socket socket) |
static int |
findFreePort()
Returns a free port number on localhost, or -1 if unable to find a free port.
|
public SocketUtil(VMDebugCore debugCore)
public static int findFreePort()
public boolean close(Socket socket)
public boolean close(ServerSocket socket)
public boolean close(InputStream is)
public boolean close(OutputStream os)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.