The VoiceMan protocol implementation.
More...
List of all members.
Detailed Description
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
Constructor & Destructor Documentation
- Parameters:
-
[in] | handler | The reference to parsed data handling object |
Member Function Documentation
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 |