Hi everyone,
I'm working on TCP server using MDK ARM with Real Time Library 4.12. I'm communicating with up to 4 TCP clients. I have set number of TCP sockets to 4 and Default Connect Timeout to 120 seconds. If there is no data send or received within this time frame, connection will be closed by TCP/IP stack.
I must send TCP KEEP alive messages on variable interval. Interval must be set by user at configuration time. I client is alive, Keep alive timer will be reset.
I know that there is a TCP_KEEP_ALIVE attribute Real Time Library 4.21 but upgrade is not an option.
Is there any way to send raw IP packet using RL 4.12?
I was thinking about using send_frame function, but I'm not sure will I be able to see If client responded or not. I have almost completed my project, but if I don't figure out how to send keep alives, I will be forced to move to uIP or come other TCP/IP stack.
Best regards, Tomislav