public class SubServerSocketFactory
extends java.lang.Object
Constructor and Description |
---|
SubServerSocketFactory(Protocol<RemoteWorker> handshake,
NameService nameService,
NameService.PortType portType)
Creates a new SubServerSocketFactory decorating the given
ServerSocketFactory.
|
SubServerSocketFactory(Protocol<RemoteWorker> handshake,
NameService nameService,
NameService.PortType portType,
int maxOpenConnectionsPerChannel)
Creates a new SubServerSocketFactory decorating the given
ServerSocketFactory.
|
Modifier and Type | Method and Description |
---|---|
SubServerSocket |
createServerSocket()
create an unbound server socket.
|
SubServerSocket |
createServerSocket(java.lang.String host)
convenience method
|
SubServerSocket |
createServerSocket(java.lang.String name,
int backlog)
create a server socket to await connections to the given local host name
and port number.
|
public SubServerSocketFactory(Protocol<RemoteWorker> handshake, NameService nameService, NameService.PortType portType)
factory
- the ServerSocketFactory that will be used to create the
ServerSockets used to implement SubServerSockets returned by thispublic SubServerSocketFactory(Protocol<RemoteWorker> handshake, NameService nameService, NameService.PortType portType, int maxOpenConnectionsPerChannel)
factory
- the ServerSocketFactory that will be used to create the
ServerSockets used to implement SubServerSockets returned by thispublic SubServerSocket createServerSocket()
public SubServerSocket createServerSocket(java.lang.String host) throws java.io.IOException
java.io.IOException
public SubServerSocket createServerSocket(java.lang.String name, int backlog) throws java.io.IOException
name
- the local namebacklog
- the number of waiting connections to allow on this socket. If
non-positive, unlimited waiting connections are allowed.java.io.IOException
ServerSocketFactory.createServerSocket(int, int,
InetAddress)