How to use select() with sockets
| tnjones (38) | |||
| 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 | |||
| Daper (1) | |||
| 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 | |||
This topic is archived - New replies not allowed.
