I'm just starting to use winsock and couldn't for the life of me come up with an effective way to detect timeout on connection.

Can anyone help me?