Select on File Descriptor and Socket Descriptor

Hi,

I want to do a single SELECT on FILE DESCRIPTOR and SOCKET Descriptor.

Is there any way that I can do this. I mean how to listen on a single SELECT, for both the file descriptor and file descriptor.

thanks in advance,

BR,
-Dheeraj

use the FD_SET twice maybe?

thats i am doing.
But what is happening, that in SELECT I am able to get the data from only one FD. Even sending the notification for other one I am anot waking up in SELECT.

post your code please