Hi,
I'm using a K66 platform which currently manages one TCP connection over Ethernet/Wi-Fi/cellular link, Now I have to support several connections to different servers, all use the same L2 method.
My question refers to the changes needed to increase number of devices. As there are no comments in the code I'm not sure which definitions refer to number of HW interfaces and which to number of RTCS devices.
Thanks,
Ariela
Solved! Go to Solution.
Hi Ariela:
At the TCP level, the default RTCS setting is to allow unlimited TCP connections, it depens on your system memory.
(RTCSCFG_TCP_MAX_CONNECTIONS = 0).
At application level, some application may give additional limits.
Please refer to rtcscfg.h, Line 611
/*
** Maximum number of simultaneous connections allowed. Define as 0 for no limit.
** MGCT: <option type="number"/>
*/
#ifndef RTCSCFG_TCP_MAX_CONNECTIONS
#define RTCSCFG_TCP_MAX_CONNECTIONS 0
#endif
/*
** Maximum number of simultaneously connected clients
** over TCP protocol serviced by the ECHOSRV.
** MGCT: <option type="number"/>
*/
#ifndef RTCSCFG_ECHOSRV_MAX_TCP_CLIENTS
#define RTCSCFG_ECHOSRV_MAX_TCP_CLIENTS (4)
#endif
Regards
Daniel
-----------------------------------------------------------------------------------------------------------------------
Note: please click the Correct or helpful if this post is helpful. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Daniel,
I'm using MQX 4.2.
Thanks,
Ariela
Hi Daniel,
Do you have any answers for me?
Thanks,
Ariela
Hi Ariela:
At the TCP level, the default RTCS setting is to allow unlimited TCP connections, it depens on your system memory.
(RTCSCFG_TCP_MAX_CONNECTIONS = 0).
At application level, some application may give additional limits.
Please refer to rtcscfg.h, Line 611
/*
** Maximum number of simultaneous connections allowed. Define as 0 for no limit.
** MGCT: <option type="number"/>
*/
#ifndef RTCSCFG_TCP_MAX_CONNECTIONS
#define RTCSCFG_TCP_MAX_CONNECTIONS 0
#endif
/*
** Maximum number of simultaneously connected clients
** over TCP protocol serviced by the ECHOSRV.
** MGCT: <option type="number"/>
*/
#ifndef RTCSCFG_ECHOSRV_MAX_TCP_CLIENTS
#define RTCSCFG_ECHOSRV_MAX_TCP_CLIENTS (4)
#endif
Regards
Daniel
-----------------------------------------------------------------------------------------------------------------------
Note: please click the Correct or helpful if this post is helpful. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Ariela:
Which MQX version you are using? MQX 4.2 or MQX for KSDK, or other?
Regards
Daniel