Back to Adaptive Vision Library website

You are here: Start » Function Reference » Advantech » AdamTCP_Connect



Connects as a client to a remote Advantech Adam device.


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


Name Type Range Default Description
ioState AdamTCP_State& Object used to maintain state of the function.
inDeviceIP const String& The Advantech Adam device IP address to connect to.
inTimeout const Optional<int>& 500 - NIL Timeout in milliseconds, block if not specified.
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.