Serial Framework C++ Edition

◆ ProcessData()

virtual void ProcessData ( const void *const  Data,
const unsigned long  Size 
)
pure virtual

The method called by the Connection when data has been received from a remote device.

Parameters
DataThe pointer to the received data buffer. The data buffer is valid only inside the event handler. If an application needs to use the data outside the method it must allocate own buffer and copy data.
SizeThe data buffer size.

A derived classes must override this method to process the received data.

The Data parameter is valid only inside the procedure. If a derived class needs to use data outside the method it must copy the data into internal buffer.

Implemented in CwclCustomObexClient, and CwclCustomObexServer.