14#if TARGET_win32 || TARGET_win64
20#define POLLRDNORM 0x0100
21#define POLLRDBAND 0x0200
22#define POLLIN (POLLRDNORM | POLLRDBAND)
25#define POLLWRNORM 0x0010
26#define POLLOUT (POLLWRNORM)
27#define POLLWRBAND 0x0020
31#define POLLNVAL 0x0004
40#define NFDBITS (8 * sizeof(int))
55 void append(
int fd,
int events = POLLIN|POLLERR|POLLHUP|POLLNVAL);
Error return class. This class is used to return the error status from a function....
Definition: BError.h:31
This class provides an interface for polling a number of file descriptors. It uses round robin pollin...
Definition: BPoll.h:48
void delFd(int fd)
Remove a file descriptor from polling list.
Definition: BPoll.cpp:169
void clear()
Definition: BPoll.cpp:282
BError doPoll(int &fd, int timeoutUs=-1)
Perform polling operation.
Definition: BPoll.cpp:202
void append(int fd, int events=POLLIN|POLLERR|POLLHUP|POLLNVAL)
Append a file descriptor to polling list.
Definition: BPoll.cpp:161
int getPollFdsNum()
Definition: BPoll.cpp:194
struct pollfd PollFd
Definition: BPoll.h:50
PollFd * getPollFds()
Definition: BPoll.cpp:198
BPoll()
Definition: BPoll.cpp:147
~BPoll()
Definition: BPoll.cpp:153
BError doPollEvents(int &fd, int &events, int timeoutUs=-1)
Perform polling operation and return events.
Definition: BPoll.cpp:241