public interface ServerSocketFactory
JIoEndpoint
interacts with
both non-SSL and SSL sockets.Modifier and Type | Method and Description |
---|---|
Socket |
acceptSocket(ServerSocket socket)
Wrapper function for accept().
|
ServerSocket |
createSocket(int port)
Returns a server socket which uses all network interfaces on the host,
and is bound to a the specified port.
|
ServerSocket |
createSocket(int port,
int backlog)
Returns a server socket which uses all network interfaces on the host, is
bound to a the specified port, and uses the specified connection backlog.
|
ServerSocket |
createSocket(int port,
int backlog,
InetAddress ifAddress)
Returns a server socket which uses only the specified network interface
on the local host, is bound to a the specified port, and uses the
specified connection backlog.
|
void |
handshake(Socket sock)
Triggers the SSL handshake.
|
ServerSocket createSocket(int port) throws IOException, InstantiationException
port
- the port to listen toIOException
- for networking errorsInstantiationException
- for construction errorsServerSocket createSocket(int port, int backlog) throws IOException, InstantiationException
port
- the port to listen tobacklog
- how many connections are queuedIOException
- for networking errorsInstantiationException
- for construction errorsServerSocket createSocket(int port, int backlog, InetAddress ifAddress) throws IOException, InstantiationException
port
- the port to listen tobacklog
- how many connections are queuedifAddress
- the network interface address to useIOException
- for networking errorsInstantiationException
- for construction errorsSocket acceptSocket(ServerSocket socket) throws IOException
IOException
void handshake(Socket sock) throws IOException
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.