public class SocketUtil
extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SocketUtil.BindInfo |
static interface |
SocketUtil.ServerSocketConfigurator |
Constructor and Description |
---|
SocketUtil() |
Modifier and Type | Method and Description |
---|---|
static ServerSocketChannel |
createServerSocketChannel(InetAddress bindingInetAddress,
int startPort,
SocketUtil.ServerSocketConfigurator serverSocketConfigurator) |
static SocketUtil.BindInfo |
getBindInfo(String host,
int port) |
public static ServerSocketChannel createServerSocketChannel(InetAddress bindingInetAddress, int startPort, SocketUtil.ServerSocketConfigurator serverSocketConfigurator) throws IOException
IOException
public static SocketUtil.BindInfo getBindInfo(String host, int port) throws IOException
IOException