随笔分类 -  Libevent C++高并发网络编程

服务端接收连接代码示例
摘要:#include <event2/event.h> #include <event2/listener.h> #include <string.h> #include <iostream> #include <signal.h> #define SPORT 5001 using namespace 阅读全文

posted @ 2020-06-07 12:19 sermatec江 阅读(377) 评论(0) 推荐(0)

编译测试程序
摘要:#include <event2/event.h> #include <iostream> using namespace std; int main() { cout << "test libevent.\n"; event_base * base = event_base_new(); if ( 阅读全文

posted @ 2020-06-07 12:15 sermatec江 阅读(136) 评论(0) 推荐(0)

开发环境
摘要:开发环境说明 linux系统:ubuntu18.04 libevent版本:2.1.8 1 安装依赖环境 apt-get install perl g++ make automake libtool unzip2 zlib编译 tar -xvf zlib-1.2.11.tar.gz cd zlib- 阅读全文

posted @ 2020-06-07 11:37 sermatec江 阅读(177) 评论(0) 推荐(0)