|
Apache Tomcat 7.0.25 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ServerSocketFactory
The common interface through which the JIoEndpoint interacts with
both non-SSL and SSL sockets.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
ServerSocket createSocket(int port)
throws IOException,
InstantiationException
port - the port to listen to
IOException - for networking errors
InstantiationException - for construction errors
ServerSocket createSocket(int port,
int backlog)
throws IOException,
InstantiationException
port - the port to listen tobacklog - how many connections are queued
IOException - for networking errors
InstantiationException - for construction errors
ServerSocket 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 use
IOException - for networking errors
InstantiationException - for construction errors
Socket acceptSocket(ServerSocket socket)
throws IOException
IOException
void handshake(Socket sock)
throws IOException
IOException
|
Apache Tomcat 7.0.25 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||