5 years, 9 months ago.

W7500P TCP - keep connexion alive

Hi guys !

I'm working on W7500P Wiznet board and I try to deal with the TCPSocketConnexion and TCPSocketServer for WiznetInterface. I can successfully be connected to a Client or a server ( I tried with netcast, wireshark, web...) but I can't stop the server on my board correctly. When I work on TCP in C the function "recv" make a difference between receiving nothing or connexion is stopped : 0 is sent when the connexion is stopped in a normal way. I tried the same thing with receive() and received_all() but there is no difference between no message or connexion ended. I saw there are different solutions like trying to write or just stop the connexion with a timeout. Do you have any informations for me ? If it is not clear, just tell me !

Thank you, Simon

Be the first to answer this question.