Back to FabImage Library website
You are here: Start » Function Reference » Hardware Support » Advantech » AdamTCP_Connect
Header: | ThirdPartySdk.h |
---|---|
Namespace: | fil |
Module: | ThirdParty |
Connects as a client to a remote Advantech Adam device.
Syntax
void fil::AdamTCP_Connect ( AdamTCP_State& ioState, const ftl::String& inDeviceIP, const ftl::Optional<int>& inTimeout, const ftl::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.