|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Data Structures | |
| struct | pollfd |
Macros | |
| #define | POLLIN 1 /* Reading will not block */ |
| #define | POLLPRI 2 /* Urgent data available for reading */ |
| #define | POLLOUT 4 /* Writing will not block */ |
| #define | POLLERR 8 /* Error condition */ |
| #define | POLLHUP 16 /* Hung up: fd was closed by other side */ |
| #define | POLLNVAL 32 /* Invalid: fd not open or not valid */ |
| #define | POLL_NOTIMEOUT (-1) |
| #define | poll(fdarray, numfds, timeout) gw_poll(fdarray, numfds, timeout) |
Functions | |
| int | gw_poll (struct pollfd *fdarray, unsigned int numfds, int timeout) |
| #define poll | ( | fdarray, | |
| numfds, | |||
| timeout | |||
| ) | gw_poll(fdarray, numfds, timeout) |
Definition at line 104 of file gwpoll.h.
Referenced by gwthread_poll(), gwthread_pollfd(), and gwthread_sleep().
| #define POLL_NOTIMEOUT (-1) |
Definition at line 100 of file gwpoll.h.
Referenced by gwthread_poll(), gwthread_pollfd(), and gwthread_sleep().
| #define POLLERR 8 /* Error condition */ |
Definition at line 96 of file gwpoll.h.
Referenced by conn_flush(), conn_wait(), poll_callback(), and poller().
| #define POLLHUP 16 /* Hung up: fd was closed by other side */ |
Definition at line 97 of file gwpoll.h.
Referenced by conn_flush(), conn_wait(), and poll_callback().
| #define POLLIN 1 /* Reading will not block */ |
Definition at line 91 of file gwpoll.h.
Referenced by accept_thread(), cgw_listener(), cgw_wait_command(), conn_register_real(), conn_wait(), emi2_listener(), fake_listener(), gw_accept(), gw_poll(), gwthread_poll(), gwthread_pollfd(), gwthread_sleep(), poll_callback(), server_thread(), unlocked_register_pollin(), and wait_for_connections().
| #define POLLNVAL 32 /* Invalid: fd not open or not valid */ |
Definition at line 98 of file gwpoll.h.
Referenced by conn_flush(), conn_wait(), and gw_poll().
| #define POLLOUT 4 /* Writing will not block */ |
Definition at line 93 of file gwpoll.h.
Referenced by conn_flush(), conn_register_real(), conn_wait(), gw_poll(), poll_callback(), and unlocked_register_pollout().
| #define POLLPRI 2 /* Urgent data available for reading */ |
| int gw_poll | ( | struct pollfd * | fdarray, |
| unsigned int | numfds, | ||
| int | timeout | ||
| ) |
Definition at line 67 of file gwpoll.c.
References pollfd::events, pollfd::fd, POLLIN, POLLNVAL, POLLOUT, POLLPRI, and pollfd::revents.