|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpyrasun.eio.util.EIOUtil
Me pappy told me many moons ago that you can't have a real library without a utility class - so here ya go, pops.
| Constructor Summary | |
EIOUtil()
|
|
| Method Summary | |
static java.nio.channels.SocketChannel |
createClient(java.net.InetSocketAddress sockAddr,
int timeout)
Create a socket client. |
static java.nio.channels.SocketChannel |
createClient(java.lang.String host,
int port)
Create a socket client. |
static java.nio.channels.SocketChannel |
createClient(java.lang.String host,
int port,
int timeout)
Create a socket client. |
static java.nio.channels.ServerSocketChannel |
createServer(java.net.InetSocketAddress sockAddr)
Create a ServerSocketChannel using the specified InetSocketAddress. |
static java.nio.channels.ServerSocketChannel |
createServer(int port)
Create a ServerSocketChannel on the default socket interface w/ the specified port. |
static java.nio.channels.ServerSocketChannel |
createServer(java.lang.String host,
int port)
Create a ServerSocketChannel on the specified host w/ the specified port. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EIOUtil()
| Method Detail |
public static java.nio.channels.ServerSocketChannel createServer(java.lang.String host,
int port)
throws java.io.IOException
host - - DNS name or IP address of the host. This parameter must resolve to a valid interface on the local machineport - - Port number to bind the server to.
java.io.IOException
public static java.nio.channels.ServerSocketChannel createServer(int port)
throws java.io.IOException
port - - Port number to bind the server to.
java.io.IOException
public static java.nio.channels.ServerSocketChannel createServer(java.net.InetSocketAddress sockAddr)
throws java.io.IOException
java.io.IOException
public static java.nio.channels.SocketChannel createClient(java.lang.String host,
int port)
throws java.io.IOException
java.io.IOException
public static java.nio.channels.SocketChannel createClient(java.lang.String host,
int port,
int timeout)
throws java.io.IOException
java.io.IOException
public static java.nio.channels.SocketChannel createClient(java.net.InetSocketAddress sockAddr,
int timeout)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||