Integratec API Platform
OPAPI OPBOOL opControlConnectionOpen ( wchar_t *  ip,
int32_t  port,
OPAPIHandle *  control,
wchar_t **  errorMsg 
)

Opens a control connection to a control hub.

Parameters
[in]ipControl hub IP address or host name.
[in]portControl hub TCP port.
[in]controlHandle representing the control connection.
[out]errorMsgError message describing the failure, set if the function fails.
Returns
If the function succeeds, the return value is non-zero and control is set to a handle representing the control connection.
If the function fails, the return value is zero and errorMsg is set to an error message describing the failure.
Usage
Specify the control hub IP address or host name using the ip parameter and the control hub TCP port using the port parameter.
Attention
Close the control connection using opControlConnectionClose when you no longer need it.
See also
opControlConnectionClose.