wclClientConnectionConnect Method |
Connects to a remote device.
Namespace: wclCommunicationAssembly: wclCommunication (in wclCommunication.dll) Version: 7.9.6.0 (7.9.6.0)
Syntaxpublic int Connect(
wclMessageProcessingMethod MessageProcessing,
uint Timeout = 10000
)
Public Function Connect (
MessageProcessing As wclMessageProcessingMethod,
Optional Timeout As UInteger = 10000
) As Integer
public:
int Connect(
wclMessageProcessingMethod MessageProcessing,
unsigned int Timeout = 10000
)
Parameters
- MessageProcessing wclMessageProcessingMethod
- Specifies a message processing method
that should be used by the connection.
- Timeout UInt32 (Optional)
- The connect timeout in milliseconds. The
default value is 10000 milliseconds.
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 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