´╗┐ TwclClientConnection.Connect Method
IrDA Framework
ContentsIndexHome
PreviousUpNext
TwclClientConnection.Connect Method

Connects to a remote device.

Syntax
Pascal
function Connect(const Timeout: Cardinal = 10000): Integer;
Parameters 
Description 
const Timeout: Cardinal = 10000 
The connect timeout in milliseconds. The default value is 10000 milliseconds.  

If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

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.

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