´╗┐ CwclClientConnection::HalConnect Method
IrDA Framework
ContentsIndexHome
PreviousUpNext
CwclClientConnection::HalConnect Method

Implements a hardware depended code that connects to a remote device.

Syntax
C++
virtual int HalConnect(HANDLE Event) = 0;
Parameters 
Description 
HANDLE Event 
The system even object handle.  

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 connects to 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. If the termination event was set the method must terminate connection operation.  

If connection to a remote device was terminated the method must release all allocated resources because the HalDisconnect will not be called.  

 

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