Parent Directory
|
Revision Log
|
Revision Graph
* Some updates to network code
1 | #ifndef _MY_POLL_H_ |
2 | #define _MY_POLL_H_ |
3 | |
4 | #define POLLIN 1 |
5 | #define POLLOUT 2 |
6 | #define POLLERR 4 |
7 | #define POLLNVAL 8 |
8 | #define POLLHUP 16 |
9 | |
10 | struct pollfd { |
11 | int fd; |
12 | short events; |
13 | short revents; |
14 | }; |
15 | |
16 | int poll(struct pollfd *pollfds, int npollfds, int timeout); |
17 | |
18 | #endif |
webmaster@eggheads.org | ViewVC Help |
Powered by ViewVC 1.1.23 |