#include <FDSet.hpp>
| Public Member Functions | |
| FDSet () | |
| Constructor. | |
| virtual | ~FDSet () | 
| Destructor. | |
| virtual void | addFD (int fd) | 
| Add file descriptor (read). | |
| virtual void | addReadFD (int fd) | 
| Add file descriptor (read). | |
| virtual void | addWriteFD (int fd) | 
| Add file descriptor (write). | |
| virtual void | addExceptFD (int fd) | 
| Add file descriptor (except). | |
| virtual void | removeFD (int fd) | 
| Remove file descriptor (read). | |
| virtual void | removeReadFD (int fd) | 
| Remove file descriptor (read). | |
| virtual void | removeWriteFD (int fd) | 
| Remove file descriptor (write). | |
| virtual void | removeExceptFD (int fd) | 
| Remove file descriptor (except). | |
| virtual bool | isSet (int fd) | 
| Check file descriptor status. | |
| virtual bool | isSetRead (int fd) | 
| Check file descriptor status (read). | |
| virtual bool | isSetWrite (int fd) | 
| Check file descriptor status (write). | |
| virtual bool | isSetExcept (int fd) | 
| Check file descriptor status (except). | |
| virtual int | select () | 
| Select. | |
| virtual void | setTimeout (int secs, int usecs) | 
| Set timeout. | |
| virtual void | clear () | 
| Clear all file descriptor sets. | |
| virtual void | clearRead () | 
| Clear file descriptor set (read). | |
| virtual void | clearWrite () | 
| Clear file descriptor set (read). | |
| virtual void | clearExcept () | 
| Clear file descriptor set (read). | |
| Protected Attributes | |
| fd_set | masterRead | 
| Master FD set (read). | |
| fd_set | masterWrite | 
| Master FD set (write). | |
| fd_set | masterExcept | 
| Master FD set (except). | |
| fd_set | activeRead | 
| Active FD set (read). | |
| fd_set | activeWrite | 
| Active FD set (write). | |
| fd_set | activeExcept | 
| Active FD set (except). | |
| timeval * | timeout | 
| Select timeout. | |
A file descriptor set. This implements the same functionality as select(), FD_ZERO, FD_SET, FD_ISSET, FD_CLR etc. in a more convenient way. It also eliminates ugly macros from your application code. ;-)
| 
 | 
| Constructor. Construct new FDSet object. | 
| 
 | 
| Destructor. Destruct FDSet object. | 
| 
 | 
| Add file descriptor (except). Add a file descriptor to the except set. 
 
 | 
| 
 | 
| Add file descriptor (read). Add a file descriptor to the read set. 
 
 
 | 
| 
 | 
| Add file descriptor (read). Add a file descriptor to the read set. 
 
 | 
| 
 | 
| Add file descriptor (write). Add a file descriptor to the write set. 
 
 | 
| 
 | 
| Clear all file descriptor sets. 
 | 
| 
 | 
| Clear file descriptor set (read). 
 | 
| 
 | 
| Clear file descriptor set (read). 
 | 
| 
 | 
| Clear file descriptor set (read). 
 | 
| 
 | 
| Check file descriptor status. Checks whether a file descriptor has been set during a select() operation. 
 
 
 
 | 
| 
 | 
| Check file descriptor status (except). Checks whether a file descriptor has been set during a select() operation. 
 
 
 | 
| 
 | 
| Check file descriptor status (read). Checks whether a file descriptor has been set during a select() operation. 
 
 
 | 
| 
 | 
| Check file descriptor status (write). Checks whether a file descriptor has been set during a select() operation. 
 
 
 | 
| 
 | 
| Remove file descriptor (except). Remove a file descriptor from the except set. 
 
 | 
| 
 | 
| Remove file descriptor (read). Remove a file descriptor from the read set. 
 
 
 | 
| 
 | 
| Remove file descriptor (read). Remove a file descriptor from the read set. 
 
 | 
| 
 | 
| Remove file descriptor (write). Remove a file descriptor from the write set. 
 
 | 
| 
 | 
| Select. Checks the file descriptors in the set for changed state. 
 
 | 
| 
 | ||||||||||||
| Set timeout. Sets the timeout of select operations. 
 
 | 
| 
 | 
| Active FD set (except). 
 | 
| 
 | 
| Active FD set (read). 
 | 
| 
 | 
| Active FD set (write). 
 | 
| 
 | 
| Master FD set (except). 
 | 
| 
 | 
| Master FD set (read). 
 | 
| 
 | 
| Master FD set (write). 
 | 
| 
 | 
| Select timeout. 
 | 
 1.4.6
 1.4.6