#include <FileDescriptor.h>
Inheritance diagram for FileDescriptorManager:


[NOHEADER] | |
| void | update (ref< FileDescriptor > const &fd, bool forRead, bool forWrite) |
| void | remove (int fdnum) |
| class | FileDescriptor |
Public Methods | |
| FileDescriptorManager () | |
| void | closeAll () |
| int | getMaxFd () const |
| void | fillFdSet (fd_set *rfds, fd_set *wfds) const |
| void | processFdSet (fd_set *rfds, fd_set *wfds) |
| bool | poll (struct timeval const *timeout) |
| void | mainloop () |
| int | getCountRegistered () const |
Private Types | |
| typedef vector< ref<FileDescriptor> > | descVec_t |
Private Attributes | |
| descVec_t | allFds |
| int | countRegistered |
| int | maxFd |
| fd_set | readFds |
| fd_set | writeFds |
Definition at line 186 of file FileDescriptor.h.
|
|
Allow lookup of object from fd number.
Definition at line 188 of file FileDescriptor.h. |
|
|
|
|
|
Force close all FileDescriptors managed by this.
|
|
|
Fills in all entries for managed fds.
|
|
|
Statistics.
Definition at line 229 of file FileDescriptor.h. |
|
|
Returns the maximum FD managed.
Definition at line 210 of file FileDescriptor.h. |
|
|
Repeatedly calls poll(NULL).
|
|
|
Wait for incoming work for up to the given timeout, or forever if timeout is NULL.
|
|
|
Runs work from a post-select() fdset.
|
|
|
Removes the entry for a given FileDescriptor completely.
|
|
|
Adds, updates or disables the entry for a given FileDescriptor.
|
|
|
Definition at line 197 of file FileDescriptor.h. |
|
|
All FileDescriptor objects registered with this fdMgr.
Definition at line 190 of file FileDescriptor.h. |
|
|
Count of registered FileDescriptor objects.
Definition at line 191 of file FileDescriptor.h. |
|
|
Maximum fd number of all registered FileDescriptors.
Definition at line 192 of file FileDescriptor.h. |
|
|
Set of fds interested in read-available events.
Definition at line 193 of file FileDescriptor.h. |
|
|
Set of fds interested in write-available events.
Definition at line 194 of file FileDescriptor.h. |
1.2.6 written by Dimitri van Heesch,
© 1997-2001