We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have set the tcp_DefOut as 120 seconds (default). The development board is TCP server, i am connecting to IP on listening port, the development board is closing the socket within 10 seconds. How can i control the delay ( i need this to be order of 60 seconds on so).
hello,
normally the value given by the tcp_get_socket function is used. I guess that when this value is '0' or bigger than '600' then the TCP_DEFTOUT value from Net_Config.c is used.
This value is used to automatically close the conenction if you haven't sent or received something with the socket.
The keep alive timer, in countrary, is being used to check al the sockets if something has to be sent or is being received. This function has to be called periodically. If you use the RTX kernel, this function has to be in a process with the lowest priority, else your other functions won't work any more.
You can learn a lot from the HTTP_Example, when you play with some values and check what everything does.
Hope this helps