Fellow monks,
after a socket connection has been established, is it possible to check whether the socket is still connected without trying to read from or write to the socket? I have tried getpeername, but that (contrary to the docs) returns the peer name even when the socket connection has been interrupted.
I want to use this to find out whether the other application I'm talking to via a socket has crashed.
In reply to How to find out whether socket is still connected? by crenz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |