wclGattClientConnectionHalConnect Method |
Implements a hardware-dependent code that connects to a
remote device.
Namespace: wclBluetoothAssembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax protected override int HalConnect(
IntPtr Event
)
Protected Overrides Function HalConnect (
Event As IntPtr
) As Integer
protected:
virtual int HalConnect(
IntPtr Event
) override
Parameters
- Event IntPtr
- The system even object handle.
Return Value
Int32 If the function succeed 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
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.
A derived class must always call inherited
method.
See Also