cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : UNIX/Linux Programming : How to use select() with sockets
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programm...
Articles
Lounge
Jobs

-

post  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.
Home page | Privacy policy
© cplusplus.com, 2000-2009 - All rights reserved - v2.2
Spotted an error? contact us