Click or drag to resize

wclClientConnectionHalConnect Method

Implements a hardware-dependent code that connects to a remote device.

Namespace: wclCommunication
Assembly: wclCommunication (in wclCommunication.dll) Version: 8.0.6.0
Syntax
protected abstract int HalConnect(
	wclAutoResetEvent Event
)

Parameters

Event  wclAutoResetEvent
The connection termination (disconnection) event.

Return Value

Int32
If the method completed with success the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
Remarks

Derived classes must override this method to implement a hardware-dependent code that connects to a remote device.

The method executes in a separate thread.

The method implementation must monitor the Event object. The Event is signaled if the Disconnect method was called. If the termination event is signaled 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.

See Also