A class deriving from StreamRequestHandler - it is a message handler for the server side of a given client connection.
When a new connection is created, this class registers the connection with the server, and then listens for messages from the connection and relays them to the server for handling.
When a client disconnects, this class deregisters the connection.
#include
<class_client_connection_1_1_client_connection.h>
Public Member Functions |
|
| __init__ () | |
| setup () | |
| # Receives an incoming connection and
registers it with the server |
|
| readPacket () | |
| handle () | |
| # Listens for messages from the client
connection and sends the message # to the server for further
processing |
|
| finish () | |
| # Closes the connection and deregisters it
from the server |
|
| ClientConnection.ClientConnection.__init__ | ( | ) |
| ClientConnection.ClientConnection.setup | ( | ) |
# Receives an incoming connection and registers it with the server
| ClientConnection.ClientConnection.readPacket | ( | ) |
| ClientConnection.ClientConnection.handle | ( | ) |
# Listens for messages from the client connection and sends the message # to the server for further processing
| ClientConnection.ClientConnection.finish | ( | ) |
# Closes the connection and deregisters it from the server