jabberd2
2.7.0
|
Go to the source code of this file.
Macros | |
#define | MIO_FUNCS |
#define | MIO_FD_VARS |
#define | MIO_VARS |
#define | MIO_INIT_VARS(m) |
#define | MIO_FREE_VARS(m) |
#define | MIO_ALLOC_FD(m, rfd) _mio_alloc_fd(MIO(m), rfd) |
#define | MIO_FREE_FD(m, mfd) |
#define | MIO_REMOVE_FD(m, mfd) MIO(m)->pfds[mfd->mio_fd.fd].fd = -1 |
#define | MIO_CHECK(m, t) _mio_poll(MIO(m), t) |
#define | MIO_SET_READ(m, mfd) MIO(m)->pfds[mfd->mio_fd.fd].events |= POLLIN |
#define | MIO_SET_WRITE(m, mfd) MIO(m)->pfds[mfd->mio_fd.fd].events |= POLLOUT |
#define | MIO_UNSET_READ(m, mfd) MIO(m)->pfds[mfd->mio_fd.fd].events &= ~POLLIN |
#define | MIO_UNSET_WRITE(m, mfd) MIO(m)->pfds[mfd->mio_fd.fd].events &= ~POLLOUT |
#define | MIO_CAN_READ(m, iter) (MIO(m)->pfds[iter].revents & (POLLIN|POLLERR|POLLHUP|POLLNVAL)) |
#define | MIO_CAN_WRITE(m, iter) (MIO(m)->pfds[iter].revents & POLLOUT) |
#define | MIO_CAN_FREE(m) 1 |
#define | MIO_INIT_ITERATOR(iter) int iter |
#define | MIO_ITERATE_RESULTS(m, retval, iter) for(iter = 0; iter <= MIO(m)->highfd; iter++) |
#define | MIO_ITERATOR_FD(m, iter) (&MIO(m)->fds[iter].mio_fd) |
#define MIO_FUNCS |
Definition at line 27 of file mio_poll.h.
#define MIO_FD_VARS |
Definition at line 52 of file mio_poll.h.
#define MIO_VARS |
Definition at line 54 of file mio_poll.h.
#define MIO_INIT_VARS | ( | m | ) |
Definition at line 59 of file mio_poll.h.
#define MIO_FREE_VARS | ( | m | ) |
Definition at line 81 of file mio_poll.h.
#define MIO_ALLOC_FD | ( | m, | |
rfd | |||
) | _mio_alloc_fd(MIO(m), rfd) |
Definition at line 87 of file mio_poll.h.
#define MIO_FREE_FD | ( | m, | |
mfd | |||
) |
Definition at line 88 of file mio_poll.h.
#define MIO_REMOVE_FD | ( | m, | |
mfd | |||
) | MIO(m)->pfds[mfd->mio_fd.fd].fd = -1 |
Definition at line 90 of file mio_poll.h.
#define MIO_CHECK | ( | m, | |
t | |||
) | _mio_poll(MIO(m), t) |
Definition at line 92 of file mio_poll.h.
#define MIO_SET_READ | ( | m, | |
mfd | |||
) | MIO(m)->pfds[mfd->mio_fd.fd].events |= POLLIN |
Definition at line 94 of file mio_poll.h.
#define MIO_SET_WRITE | ( | m, | |
mfd | |||
) | MIO(m)->pfds[mfd->mio_fd.fd].events |= POLLOUT |
Definition at line 95 of file mio_poll.h.
#define MIO_UNSET_READ | ( | m, | |
mfd | |||
) | MIO(m)->pfds[mfd->mio_fd.fd].events &= ~POLLIN |
Definition at line 97 of file mio_poll.h.
#define MIO_UNSET_WRITE | ( | m, | |
mfd | |||
) | MIO(m)->pfds[mfd->mio_fd.fd].events &= ~POLLOUT |
Definition at line 98 of file mio_poll.h.
#define MIO_CAN_READ | ( | m, | |
iter | |||
) | (MIO(m)->pfds[iter].revents & (POLLIN|POLLERR|POLLHUP|POLLNVAL)) |
Definition at line 101 of file mio_poll.h.
#define MIO_CAN_WRITE | ( | m, | |
iter | |||
) | (MIO(m)->pfds[iter].revents & POLLOUT) |
Definition at line 103 of file mio_poll.h.
#define MIO_CAN_FREE | ( | m | ) | 1 |
Definition at line 104 of file mio_poll.h.
#define MIO_INIT_ITERATOR | ( | iter | ) | int iter |
Definition at line 107 of file mio_poll.h.
#define MIO_ITERATE_RESULTS | ( | m, | |
retval, | |||
iter | |||
) | for(iter = 0; iter <= MIO(m)->highfd; iter++) |
Definition at line 110 of file mio_poll.h.
#define MIO_ITERATOR_FD | ( | m, | |
iter | |||
) | (&MIO(m)->fds[iter].mio_fd) |
Definition at line 113 of file mio_poll.h.