|
VoiceMan
|
Processes raw lines of data from clients. More...
Public Member Functions | |
| ClientDataHandler (VoicemanProtocol &protocol, size_t maxInputLine) | |
| The constructor. | |
| void | processClientData (Client &client, const std::string &data) |
| Processes new part of data from the client. | |
This class is the intermediate point between main loop and protocol parser. It is purposed to control incomplete lines and line length exceeding.
| ClientDataHandler::ClientDataHandler | ( | VoicemanProtocol & | protocol, |
| size_t | maxInputLine | ||
| ) | [inline] |
| [in] | protocol | The reference to protocol handling object |
| [in] | maxInputLine | The maximum length of input line (0 - not limited) |
| void ClientDataHandler::processClientData | ( | Client & | client, |
| const std::string & | data | ||
| ) | [inline, virtual] |
This method receives new portion of data as single line of text, splits it to the proper line set, processes it with protocol object and controls incomplete line part.
| [in] | client | The reference to client object to handle data for |
| [in] | data | The data to process |
Implements AbstractClientDataHandler.
1.7.5.1