Back to Aurora Vision Library Lite website

You are here: Start » Hardware Support » Advantech » AdamTCP_Connect

AdamTCP_Connect


Header: ThirdPartySdk.h
Namespace: avl

Connects as a client to a remote Advantech Adam device.

Syntax

void avl::AdamTCP_Connect
(
	AdamTCP_State& ioState,
	const atl::String& inDeviceIP,
	const atl::Optional<int>& inTimeout,
	const atl::Optional<int>& inKeepAliveTime
)

Parameters

Name Type Range Default Description
Input will be modified ioState AdamTCP_State& Object used to maintain state of the function.
Input value inDeviceIP const String& The Advantech Adam device IP address to connect to.
Input value inTimeout const Optional<int>& 500 - NIL Timeout in milliseconds, block if not specified.
Input value inKeepAliveTime const Optional<int>& 2000 - NIL When specified activates Tcp/Ip keep alive on new socket with given idle time.

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.