HI I am new to Posix Threads and I have a few questions.

I am writing a server program, there is a while loop accepting conections. When a connection gets accept()ed a new thread is created. The thread function is in charge of recv()ing the data from the client now everything all right so far. The problem is that recv() blocks I thought threads would solve this problem. Does recv() blocks no matter what? do I have to use select() or any other function that allows me to check for incomming data?


Thank you very much in advance