AbstractClientDataHandler Class Reference

The abstract class to handle client data. More...

Inherited by ClientDataHandler.

List of all members.

Public Member Functions

virtual void processClientData (Client &client, const std::string &data)=0
 Callback method to notify new data was received.


Detailed Description

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.

See also:
MainLoop ClientDataHandler

Member Function Documentation

virtual void AbstractClientDataHandler::processClientData ( Client client,
const std::string &  data 
) [pure virtual]

This class 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.

Parameters:
[in] client The client object data was received from
[in] data The received data


Generated on Thu May 6 16:10:58 2010 for VoiceMan by  doxygen 1.5.9