VoiceMan
|
The abstract class to handle client data. More...
Public Member Functions | |
virtual void | processClientData (Client &client, const std::string &data)=0 |
Callback method to notify new data was received. |
This class declares an interface for objects to process data received from clients. The data sent through this interface is not prepared and is not checked. It is provided from MainLoop class. The strings even must not be bounded to line ends.
virtual void AbstractClientDataHandler::processClientData | ( | Client & | client, |
const std::string & | data | ||
) | [pure virtual] |
This method notifies there is new data received from client and it must be handled. The provided string is the raw data block, it can be not bounded to line end, so handler must wait next one until it will be sure the complete string is received.
[in] | client | The client object data was received from |
[in] | data | The received data |
Implemented in ClientDataHandler.