|
libuev
|
Descriptor backend, capable of watching files, sockets, pipes, etc. More...

Functions | |
| int | uev_io_init (uev_ctx_t *ctx, uev_t *w, uev_cb_t *cb, void *arg, int fd, int events) |
| Create an I/O watcher. More... | |
| int | uev_io_set (uev_t *w, int fd, int events) |
| Reset an I/O watcher. More... | |
| int | uev_io_start (uev_t *w) |
| Start an I/O watcher. More... | |
| int | uev_io_stop (uev_t *w) |
| Stop an I/O watcher. More... | |
Descriptor backend, capable of watching files, sockets, pipes, etc.
Create an I/O watcher.
| ctx | A valid libuEv context |
| w | Pointer to an uev_t watcher |
| cb | I/O callback |
| arg | Optional callback argument |
| fd | File descriptor to watch, or -1 to register an empty watcher |
| events | Events to watch for: UEV_READ, UEV_WRITE, UEV_EDGE, UEV_ONESHOT |
errno set on error. | int uev_io_set | ( | uev_t * | w, |
| int | fd, | ||
| int | events | ||
| ) |
| int uev_io_start | ( | uev_t * | w | ) |
Start an I/O watcher.
| w | Watcher to start (again) |
errno set on error. | int uev_io_stop | ( | uev_t * | w | ) |
Stop an I/O watcher.
| w | Watcher to stop |
errno set on error.
1.8.13