13 #if TARGET_win32 || TARGET_win64 17 #define POLLRDNORM 0x0100 18 #define POLLRDBAND 0x0200 19 #define POLLIN (POLLRDNORM | POLLRDBAND) 20 #define POLLPRI 0x0400 22 #define POLLWRNORM 0x0010 23 #define POLLOUT (POLLWRNORM) 24 #define POLLWRBAND 0x0020 26 #define POLLERR 0x0001 27 #define POLLHUP 0x0002 28 #define POLLNVAL 0x0004 29 #define NFDBITS (8 * sizeof(int)) 50 void append(
int fd,
int events = POLLIN|POLLERR|POLLHUP|POLLNVAL);
BPoll()
Definition: BPoll.cpp:146
int getPollFdsNum()
Definition: BPoll.cpp:193
BError doPoll(int &fd, int timeoutUs=-1)
Perform polling operation.
Definition: BPoll.cpp:201
BError doPollEvents(int &fd, int &events, int timeoutUs=-1)
Perform polling operation and return events.
Definition: BPoll.cpp:240
struct pollfd PollFd
Definition: BPoll.h:45
This class provides an interface for polling a number of file descriptors. It uses round robin pollin...
Definition: BPoll.h:43
~BPoll()
Definition: BPoll.cpp:152
PollFd * getPollFds()
Definition: BPoll.cpp:197
void append(int fd, int events=POLLIN|POLLERR|POLLHUP|POLLNVAL)
Append a file descriptor to polling list.
Definition: BPoll.cpp:160
void delFd(int fd)
Remove a file descriptor from polling list.
Definition: BPoll.cpp:168
void clear()
Definition: BPoll.cpp:280