public class SocketUtil
extends java.lang.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 java.nio.channels.ServerSocketChannel |
createServerSocketChannel(java.net.InetAddress bindingInetAddress,
int startPort,
SocketUtil.ServerSocketConfigurator serverSocketConfigurator) |
static SocketUtil.BindInfo |
getBindInfo(java.lang.String host,
int port) |
public static java.nio.channels.ServerSocketChannel createServerSocketChannel(java.net.InetAddress bindingInetAddress, int startPort, SocketUtil.ServerSocketConfigurator serverSocketConfigurator) throws java.io.IOException
java.io.IOException
public static SocketUtil.BindInfo getBindInfo(java.lang.String host, int port) throws java.io.IOException
java.io.IOException