libevent笔记 - API
libevent 网络编程需要初始化或者屏蔽的操作#include <event2/event.h>#ifndef _WIN32#include <signal.h>#endifusing namespace std;int main(){#ifdef _WIN32//64 32 WSADATA wsa;//init win socket WSAStartup(MAKEWORD(2,2), &ws