Closed dumbo1985 closed 4 years ago
@Lichtso Thank you !
If you take a look at the TCP Example line 56 covers the connection loss case. Here you could trigger a retry and decrement a counter (as you probably only want 3 retries for example). The retry itself is identical to the first connection setup: socket->initAsTcpClient(...)
Thank you for sharing this code!
I wrote a tcp client. When I closed tcp server, the client won't reconnect..
Please teach me how to reconnect the tcp server, Thank's a lot!