ishtiaque_NSU
August 6th, 2004, 09:44 AM
When select() returns how do I know which kind of notification has occured (readfds, writefds or exceptfds). In addtion which particular socket in the fdset array got the notification. Do I have to loop through all the sockets and check if data has arrived or data can be send?
Thanks
Naumaan
August 8th, 2004, 11:47 PM
I Think you can call FD_ISSET macro to check all set of sockets for readability,writeability or errors , I mean if you r checking writeability then you check each socket one by one in a loop with FD_ISSET macro or if your r checking all options then you should check each fd_set array used in select function one by one.