I have a program which opens about 100 sockets and sends/received data.... AT present I am using some sort of polling to see if there is data to be read and I poll the array to check if there is any data to be sent out...
Now I understand that i can use select so that a lot of polling is eliminated... i.e. the select statement will return when a socket is ready for reading or for writing... But the problem is that I data is written ocationally and I dont want select to return untill there is data to be written....i.e. some data is found in the send array... I am presently using a loop to check this but is inefficient.. any suggestions..
vasanth