#include <poller.h>
Public Methods | |
basic_poller () | |
void | add (int fd, short interest, callback *cb) |
void | remove (int fd, short interest) |
void | remove (int fd) |
int | poll (int timeout) |
Definition at line 41 of file poller.h.
|
Default constructor |
|
Registers a callback for a file descriptor for a particular interest (READ or WRITE) |
|
Checks for ready file descriptors and executes the callbacks associated with them. Will wait for timeout milliseconds or until some descriptora are ready |
|
Removes a callback for a file descriptor for both READ and WRITE |
|
Removes a callback for a file descriptor for a particular interest (READ or WRITE) Definition at line 50 of file poller.h. Referenced by remove().
|