The VoiceMan protocol implementation.
More...
This is the main class to parse data received from a client and convert it to sequence of commands for handling class. Handling class must implement AbstractProtocolHandler interface and each command is sent as corresponding method call. The Client object the line was received from must be provided.
- See also
- AbstractProtocolHandler ProtocolHandler
- Parameters
-
[in] | handler | The reference to parsed data handling object |
void VoicemanProtocol::process |
( |
const std::wstring & |
s, |
|
|
Client & |
client |
|
) |
| |
Each complete line of data received from client must be processed with this method. It parses command and its parameters and invokes handling method in handling class.
- Parameters
-
[in] | s | The string to parse |
[in] | client | The reference to the client object the string was received from |