How to use select() with sockets

I have this project where I have to open several sockets to see if a range of ports are open/close. I am opening the sockets but I don't understand how to apply select() to them. By any chance can someone give me an example of this. I am new to socket programming.
Thanks In Advance
Sockets are just file descriptors, so use select() like with any file descriptor. A simple example of using select(0 is at the end of man select and a moce complex one (using sockets) is in man select_tut.

Daper
http://www.linuxprogrammingblog.com
Topic archived. No new replies allowed.