Menu
Socket API, the Xilkernel library or FreeRTOS BSP is a prerequisite. See the Note below. Note: The Xilkernel library is available only for MicroBlaze systems. For Cortex-A9 based systems (Zynq), there is no support for Xilkernel. Instead, use FreeRTOS. A FreeRTOS BSP is available for Zynq systems and must be included for using lwIP socket API.
I have always been using lwIP under FreeRTOS, the IP server runs on an Limb based device (Xilinx Zynq-7020) and the customer is usually a windows.
At the server aspect, when I hole, pay attention, and take an deal with:port, the client can link to and read/write from this deal with. And after system exit, idle for some brief period (10s30s) after that start once again, it can furthermore read through/write from the server. Howeber, when I depart the client, and nonproductive for a long time (gt;30s), I cannot link to the machine any longer. And at the machine part, it simply no longer accept any deal with. Any solutions ?
The code for the machine side is definitely listed below:
liubenyuanliubenyuan18811 magic logo22 silver badges1010 bronze badges
1 Solution
I forgot about that things, but first you need to set up correct method of keep-alive.
- is keep-alive on machine configured, so for how long he will be persisting keep-alive
- arranged proper time for keep-alive on your aspect.
- Wear't perform keep-alive with 2hrs or someting. Create a fresh socket for that it'beds bad for machine assets.
xDanxDan