1 | /* |
1 | /* |
2 | * libev simple C++ wrapper classes |
2 | * libev simple C++ wrapper classes |
3 | * |
3 | * |
4 | * Copyright (c) 2007 Marc Alexander Lehmann <libev@schmorp.de> |
4 | * Copyright (c) 2007,2008 Marc Alexander Lehmann <libev@schmorp.de> |
5 | * All rights reserved. |
5 | * All rights reserved. |
6 | * |
6 | * |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
7 | * Redistribution and use in source and binary forms, with or without modifica- |
8 | * tion, are permitted provided that the following conditions are met: |
8 | * tion, are permitted provided that the following conditions are met: |
9 | * |
9 | * |
… | |
… | |
77 | ERROR = EV_ERROR, |
77 | ERROR = EV_ERROR, |
78 | }; |
78 | }; |
79 | |
79 | |
80 | enum |
80 | enum |
81 | { |
81 | { |
82 | AUTO = EVFLAG_AUTO, |
82 | AUTO = EVFLAG_AUTO, |
83 | NOENV = EVFLAG_NOENV, |
83 | NOENV = EVFLAG_NOENV, |
84 | FORKCHECK = EVFLAG_FORKCHECK, |
84 | FORKCHECK = EVFLAG_FORKCHECK, |
|
|
85 | |
85 | SELECT = EVBACKEND_SELECT, |
86 | SELECT = EVBACKEND_SELECT, |
86 | POLL = EVBACKEND_POLL, |
87 | POLL = EVBACKEND_POLL, |
87 | EPOLL = EVBACKEND_EPOLL, |
88 | EPOLL = EVBACKEND_EPOLL, |
88 | KQUEUE = EVBACKEND_KQUEUE, |
89 | KQUEUE = EVBACKEND_KQUEUE, |
89 | DEVPOLL = EVBACKEND_DEVPOLL, |
90 | DEVPOLL = EVBACKEND_DEVPOLL, |
90 | PORT = EVBACKEND_PORT |
91 | PORT = EVBACKEND_PORT |
91 | }; |
92 | }; |
92 | |
93 | |
93 | enum |
94 | enum |
94 | { |
95 | { |
95 | NONBLOCK = EVLOOP_NONBLOCK, |
96 | NONBLOCK = EVLOOP_NONBLOCK, |
96 | ONESHOT = EVLOOP_ONESHOT |
97 | ONESHOT = EVLOOP_ONESHOT |
97 | }; |
98 | }; |
98 | |
99 | |
99 | enum how_t |
100 | enum how_t |
100 | { |
101 | { |
101 | ONE = EVUNLOOP_ONE, |
102 | ONE = EVUNLOOP_ONE, |