IrDA Framework
ContentsIndexHome
PreviousUpNext
CwclClientDataConnection::HalWrite Method

Implements a hardware depended code that sends data to the connected device.

Syntax
C++
virtual int HalWrite(void* Data, unsigned long Size, unsigned long& Written) = 0;
Parameters 
Description 
void* Data 
The pointer to the data buffer that should be sent to the connected device.  
unsigned long Size 
The data buffer size.  
unsigned long& Written 
The amount of bytes actually written to the device.  

If the function successed 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 hardware depended code that sends data to the connected device. The method executes in the main thread and must be synchronous.

Copyright (c) 2006-2017. All rights reserved.