Click or drag to resize

wclClientConnectionConnect Method

Starts the connection operation to a remote device.

Namespace: wclCommunication
Assembly: wclCommunication (in wclCommunication.dll) Version: 8.0.6.0
Syntax
protected int Connect(
	wclMessageProcessingMethod MessageProcessing
)

Parameters

MessageProcessing  wclMessageProcessingMethod
A message processing method that should be used by the connection.

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
The method starts a connection operation to a remote device. If the method success that does not mean that the connection was established. That just means that the connection operation was started. The real connection result will be passed to the OnConnect event handler.
See Also