摘要: 在网上找了个例子,其实libevent本身带了很多测试用例,不过这是第一次编译成功,尼玛 各种高性能IO库都是在linux下的,win32果断被bs了,还好有libevent对win32支持的比较好。lib很顺利的编译好了。下面就是很简单的使用下socket:#include #include #include #include #include #include #include #pragma comment(lib,"ws2_32.lib")#include #include #define LISTEN_PORT 9999#define LISTEN_BACKLOG 阅读全文
posted @ 2013-07-04 10:01 hailong 阅读(3183) 评论(0) 推荐(0)