Serial Framework C++ Edition

◆ WriteData()

virtual int WriteData ( const void *const  Data,
const unsigned long  Size,
unsigned long &  Written 
)
protectedpure virtual

Implements a connection-dependent code that sends data to the connected device.

Parameters
DataThe pointer to the data buffer that should be sent to the connected device.
SizeThe data buffer size.
WrittenThe amount of bytes actually written to the device.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

A derived class must override this method to implement a connection-dependent code that sends data to the connected device.

Implemented in CwclCustomClientDataProcessor, and CwclCustomServerClientDataProcessor.