|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Connection
The Connection object is used to manage connections
from a server socket. In order to achieve this it spawns a task
to listen for incoming connect requests. When a TCP connection
request arrives it hands off the SocketChannel to
the SocketProcessor which processes the request.
This handles connections from a ServerSocketChannel
object so that features such as SSL can be used by a server that
uses this package. The background acceptor process will terminate
if the connection is closed.
SocketProcessor| Method Summary | |
|---|---|
SocketAddress |
connect(SocketAddress address)
This creates a new background task that will listen to the specified ServerAddress for incoming TCP connect
requests. |
SocketAddress |
connect(SocketAddress address,
SSLContext context)
This creates a new background task that will listen to the specified ServerAddress for incoming TCP connect
requests. |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
SocketAddress connect(SocketAddress address)
throws IOException
ServerAddress for incoming TCP connect
requests. When an connection is accepted it is handed to the
internal Server implementation as a pipeline. The
background task is a non daemon task to ensure the server is
kept active, to terminate the connection this can be closed.
address - this is the address used to accept connections
IOException
SocketAddress connect(SocketAddress address,
SSLContext context)
throws IOException
ServerAddress for incoming TCP connect
requests. When an connection is accepted it is handed to the
internal Server implementation as a pipeline. The
background task is a non daemon task to ensure the server is
kept active, to terminate the connection this can be closed.
address - this is the address used to accept connectionscontext - this is used for secure SSL connections
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||