Lwip - TCP Client : disconnect and reconnect or initialization while cable unplugged problem
Hi dear friends... I have a big problem with lwip and tcp library in the client side... I created a server in pc and configure my board as a client ( using stm32f407 ). When i turn my board on while the lan cable is plugged and server is running, everything works perfectly... my two main problems are:
1- if cable is unplugged or server is not running then my board can't connect to server if I turn it on! How can I fix it?
2- if I want to close an active tcp client completely and reconnect it to server what should I do?
It seems to me that tcp_client_close ( including free pbuf and close_tcp) and tcp_client_connect (including tcp_new and tcp_connect) wont work properly!
please help me to fix this issue.
Best Regards.
