   How to get winsock socket state?
  Hi, I want to display the states of my winsock client and server sockets. With Visual Basic and MSWINSCK.OCX it works like this: state 0 = closed, 2 = listening, 7 = connected, etc..How should I check the state in my VC++ winsock application?Is there a function getState() or something similar?Thank you! 