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 | |
---|---|---|---|---|---|
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.