0

I have seen that question have asked before, But he have not got an answer. I have a client server program that I wrote by myself. I use sockets on tcp protocol to connect between the server and the client.

My question is how can I check that the client is stiil alive? I had an idea. every 1 second for example the server will send a buffer to the client. The client will send back the buffer and the server will know he is alive. This idea is good? or there is another way to do it?

user2320928
  • 239
  • 1
  • 6
  • 15

0 Answers0