Beamlib 3.1.2
This is the Beam C++ class library.
|
This class provides an interface for polling a number of file descriptors. It uses round robin polling. More...
#include <BPoll.h>
Public Types | |
typedef struct pollfd | PollFd |
Public Member Functions | |
BPoll () | |
~BPoll () | |
void | append (int fd, int events=POLLIN|POLLERR|POLLHUP|POLLNVAL) |
Append a file descriptor to polling list. More... | |
void | delFd (int fd) |
Remove a file descriptor from polling list. More... | |
BError | doPoll (int &fd, int timeoutUs=-1) |
Perform polling operation. More... | |
BError | doPollEvents (int &fd, int &events, int timeoutUs=-1) |
Perform polling operation and return events. More... | |
int | getPollFdsNum () |
PollFd * | getPollFds () |
void | clear () |
This class provides an interface for polling a number of file descriptors. It uses round robin polling.
typedef struct pollfd BPoll::PollFd |
BPoll::BPoll | ( | ) |
BPoll::~BPoll | ( | ) |
void BPoll::append | ( | int | fd, |
int | events = POLLIN|POLLERR|POLLHUP|POLLNVAL |
||
) |
Append a file descriptor to polling list.
void BPoll::delFd | ( | int | fd | ) |
Remove a file descriptor from polling list.
BError BPoll::doPoll | ( | int & | fd, |
int | timeoutUs = -1 |
||
) |
Perform polling operation.
BError BPoll::doPollEvents | ( | int & | fd, |
int & | events, | ||
int | timeoutUs = -1 |
||
) |
Perform polling operation and return events.
int BPoll::getPollFdsNum | ( | ) |
BPoll::PollFd * BPoll::getPollFds | ( | ) |
void BPoll::clear | ( | ) |