libevent的TCP server、定时、信号的应用
libevent实现信号处理
/*
* Compile with:
* cc -I/usr/local/include -o signal-test \
* signal-test.c -L/usr/local/lib -levent
*/
#include <sys/types.h>
#include <event2/event-config.h>
#include <sys/stat.h>
#ifndef _WIN32
#include <sy
原创
2021-05-07 16:37:36 ·
179 阅读 ·
0 评论