I was wonder about the best way to varify if a socket is currently active. In other words, I need a way to determine if there is a connect on a socket. This is just for command update UI. Basically, if the socket is active, I enable/disable something. If not, I enable/disble something.
How about this code?
// if (mysocket == WSAENOSOCKET)
// socket is invalid or inactive