… | |
… | |
738 | started. Otherwise an C<ev_timer> watcher with after = C<timeout> (and |
738 | started. Otherwise an C<ev_timer> watcher with after = C<timeout> (and |
739 | repeat = 0) will be started. While C<0> is a valid timeout, it is of |
739 | repeat = 0) will be started. While C<0> is a valid timeout, it is of |
740 | dubious value. |
740 | dubious value. |
741 | |
741 | |
742 | The callback has the type C<void (*cb)(int revents, void *arg)> and gets |
742 | The callback has the type C<void (*cb)(int revents, void *arg)> and gets |
743 | passed an events set like normal event callbacks (with a combination of |
743 | passed an C<revents> set like normal event callbacks (a combination of |
744 | C<EV_ERROR>, C<EV_READ>, C<EV_WRITE> or C<EV_TIMEOUT>) and the C<arg> |
744 | C<EV_ERROR>, C<EV_READ>, C<EV_WRITE> or C<EV_TIMEOUT>) and the C<arg> |
745 | value passed to C<ev_once>: |
745 | value passed to C<ev_once>: |
746 | |
746 | |
747 | static void stdin_ready (int revents, void *arg) |
747 | static void stdin_ready (int revents, void *arg) |
748 | { |
748 | { |