Detecting a closed socket?

BlitzMax Forums/BlitzMax Programming/Detecting a closed socket?

There's a socket server example for bmx in the archives may help. Aside from that no idea.