> You could call recv() with the non-blocking and msg_peek flags to see if > the socket is open without blocking or removing any data from the recv() > buffer. To be clear, however: this level of error-checking is *not* required! Vern