fd_set

we can use FD_SET to set the file descriptors
in fd_set. Using, FD_ISSET we can check whether
they are set or not...

Is there any way can we print the values of fd_set
structure..if so please tell me huv to do it..

since by using FD_SET we will be marking fd_set
structure..can we print what we are setting

any pointers can help

Loop from 0 to FD_SETSIZE testing each bit with FD_ISSET. If it is set, print out a message. That will tell you which fd's are in the structure. Isn't that good enough? A portable program should not depending on the internal layout of the structure.