Check if IP Socket Connection still alive

Skywalker

Member
Licensed User
Longtime User
I have the following scenario and currently there is a problem.
My Android tablet connects to a port on my windows pc and sends strings.Windows sends back a confirmation and everything works well so far.

But how can I check that the connection still exists before I send a message without the error "Broken pipe" appears so that I can try in this case to re-establish the connection now?
 

Skywalker

Member
Licensed User
Longtime User
Thank you for you reply.
Meanwhile I converted my code to async.

I understand that this method it's much better for me, and now i can check if the connection still alive.
 
Upvote 0
Top