This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ev.h> | |
#include <unistd.h> | |
#include <stdio.h> // for puts | |
// every watcher type has its own typedef'd struct | |
// with the name ev_TYPE | |
ev_io stdin_watcher; | |
ev_timer timeout_watcher; | |
// all watcher callbacks have a similar signature |