I need to find out if data is available to be read from a socket before I read it with recv so I don't have to wait cuz I am gona port my server over from VB to C++ and I'ma gona have a thread that loops through multiple sockets and reads the data and if all the other sockets have to wait for one to recieve data then that is gona suck balls.

So someone please help me to figure out how to retrieve if data is available from a socket.