|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.cornerstone.blocks.sockets.DefaultServerSocketFactory
Factory implementation for vanilla TCP sockets.
Constructor Summary | |
DefaultServerSocketFactory()
|
Method Summary | |
java.net.ServerSocket |
createServerSocket(int port)
Creates a socket on specified port. |
java.net.ServerSocket |
createServerSocket(int port,
int backLog)
Creates a socket on specified port with a specified backLog. |
java.net.ServerSocket |
createServerSocket(int port,
int backLog,
java.net.InetAddress bindAddress)
Creates a socket on a particular network interface on specified port with a specified backLog. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultServerSocketFactory()
Method Detail |
public java.net.ServerSocket createServerSocket(int port) throws java.io.IOException
createServerSocket
in interface ServerSocketFactory
port
- the port
java.io.IOException
- if an error occurspublic java.net.ServerSocket createServerSocket(int port, int backLog) throws java.io.IOException
createServerSocket
in interface ServerSocketFactory
port
- the portbackLog
- the backLog
java.io.IOException
- if an error occurspublic java.net.ServerSocket createServerSocket(int port, int backLog, java.net.InetAddress bindAddress) throws java.io.IOException
createServerSocket
in interface ServerSocketFactory
port
- the portbackLog
- the backLogbindAddress
- the network interface to bind to.
java.io.IOException
- if an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |