public static interface GenericTCPServer.ConnectionHandler
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Called upon server shutdown.
|
void |
handle(SocketChannel connection)
Handle the connection.
|
void |
init(GenericTCPServer.ServerContext context)
Called upon server start to inform the handler of context information
such as the listening address.
|
void handle(SocketChannel connection) throws Exception
connection
- the socket connectionException
- if an unexpected error occurredvoid init(GenericTCPServer.ServerContext context)
context
- the server contextvoid destroy()
Copyright © 2021 Actian Corporation. All rights reserved.