Serial Framework
ContentsIndexHome
PreviousUpNext
CwclServerClientConnection::HalCommunicate Method

Implements a hardware depended code that communicate with the connected remote device.

Syntax
C++
virtual int HalCommunicate(HANDLE Event);
Parameters 
Description 
HANDLE Event 
The system even object handle (disconnect event).  

If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

Derived classes must override this method to implement a hardware depended code that exchanges data with a remote device.  

The method executes in a separate thread.  

The method implementation must monitor the Event parameter. The Event parameter is set if the Disconnect method was called and the method must terminate communication and exit.  

The default implementation simple waits for the Event and exists when the events signaled.  

 

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