Skip to content

Instantly share code, notes, and snippets.

View celeron633's full-sized avatar
👻
defunct

celeron633 celeron633

👻
defunct
View GitHub Profile
@celeron633
celeron633 / libevtest.c
Created September 30, 2022 13:58 — forked from mengqingzhong/libevtest.c
libev demo
#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