I have one client talking to two servers. The client exe links to a static library which establishes the sockets with the two servers and communicates with them. Now first time when I estbalish the connection with the two servers, I am able to send and receive data normally. But when I get out of the static library and again call the library to communicate further with the two servers, things mess up. I can send data to the servers, using the sockets which are declared as global in the library, however, the recv call does not block for data, it just does not wait and goes ahead and I get an empy buffer......

Any clues, help, suggestions would be welcome.

Thanks in advance
Dave