What we need is an interval timer; which requires the EV_PERSIST flag in libevent. struct timeval time; time.tv_sec = 1; time.tv_usec = 0; ...
確定! 回上一頁