This class provides an interface for polling a number of file descriptors. It uses round robin polling.
More...
#include <BPoll.h>
|
int | ofdsNum |
| The number of FD's in list.
|
|
PollFd * | ofds |
| The list of poll fd's.
|
|
int | ofdsNext |
| The next list entry for round robin polling.
|
|
This class provides an interface for polling a number of file descriptors. It uses round robin polling.
◆ PollFd
◆ BPoll()
◆ ~BPoll()
◆ append()
void BPoll::append |
( |
int |
fd, |
|
|
int |
events = POLLIN|POLLERR|POLLHUP|POLLNVAL |
|
) |
| |
Append a file descriptor to polling list.
◆ clear()
◆ delFd()
void BPoll::delFd |
( |
int |
fd | ) |
|
Remove a file descriptor from polling list.
◆ doPoll()
BError BPoll::doPoll |
( |
int & |
fd, |
|
|
int |
timeoutUs = -1 |
|
) |
| |
Perform polling operation.
◆ doPollEvents()
BError BPoll::doPollEvents |
( |
int & |
fd, |
|
|
int & |
events, |
|
|
int |
timeoutUs = -1 |
|
) |
| |
Perform polling operation and return events.
◆ getPollFds()
◆ getPollFdsNum()
int BPoll::getPollFdsNum |
( |
| ) |
|
◆ nextFd()
int BPoll::nextFd |
( |
int |
i | ) |
|
|
private |
◆ ofds
◆ ofdsNext
The next list entry for round robin polling.
◆ ofdsNum
The number of FD's in list.
The documentation for this class was generated from the following files: