com.liferay.portal.kernel.util
Class SocketUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.SocketUtil

public class SocketUtil
extends java.lang.Object

Author:
Shuyang Zhou

Nested Class Summary
static class SocketUtil.BindInfo
           
static interface SocketUtil.ServerSocketConfigurator
           
 
Constructor Summary
SocketUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketUtil

public SocketUtil()
Method Detail

createServerSocketChannel

public static java.nio.channels.ServerSocketChannel createServerSocketChannel(java.net.InetAddress bindingInetAddress,
                                                                              int startPort,
                                                                              SocketUtil.ServerSocketConfigurator serverSocketConfigurator)
                                                                       throws java.io.IOException
Throws:
java.io.IOException

getBindInfo

public static SocketUtil.BindInfo getBindInfo(java.lang.String host,
                                              int port)
                                       throws java.io.IOException
Throws:
java.io.IOException