可以在回撥中重新設定timer超時,並重新啟動timer。 static void timer_cb(struct ev_loop *loop, ev_timer *watcher, int revents) { ...
確定! 回上一頁