I think either the implementation or documentation of OPT_CONNECT_TIMEOUT is wrong:
The implementation and usage of OPT_CONNECT_TIMEOUT is a timeout during calls to connect(). Typical values (e.g. FTP-Server) are 5000ms.
The documentation (Freescale MQX™ RTOS RTCS™ User’s Guide, Rev. 16, page 282) mentions:
Option name OPT_CONNECT_TIMEOUT
Protocol level SOL_TCP
Values >= 180,000 (RTCS maintains the connection for this number of
Default value 480,000 (eight minutes).
Which sounds like a connection inactivity timeout, because 3 minutes minimum timeout for a call to connect is way too high.
Can anyone please clarify?
Regards, Johannes Schock