|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Service used to create server sockets. The factory is used so that the exact socket type and underlying transport is abstracted. The sockets created could be proxied, SSL enabled, TLS enabled etc. However clients just care that they return sockets.
Method Summary | |
ServerSocket |
createServerSocket(int port)
Creates a socket on specified port. |
ServerSocket |
createServerSocket(int port,
int backlog)
Creates a socket on specified port with a specified backlog. |
ServerSocket |
createServerSocket(int port,
int backlog,
InetAddress address)
Creates a socket on a particular network interface on specified port with a specified backlog. |
Method Detail |
public ServerSocket createServerSocket(int port) throws IOException
port
- the port (0 indicates any available port)
IOException
- if unable to create socketpublic ServerSocket createServerSocket(int port, int backlog) throws IOException
port
- the port (0 indicates any available port)backlog
- the backlog
IOException
- if unable to create socketpublic ServerSocket createServerSocket(int port, int backlog, InetAddress address) throws IOException
port
- the port (0 indicates any available port)backlog
- the backlogaddress
- the network interface to bind to.
IOException
- if unable to create socket
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |