I am having client/server application and i want to detect if client is alive.
So i know that send()
will return me null
but it will not inform my server that client has been disconnected.
Way i came up is each N seconds send "Are you alive" message from server to client but is that good solution?