bufferevent代码演示服务器接收和发送数据
作者:互联网
所有代码下载地址
链接:https://pan.baidu.com/s/1j21bCNiXHBSFxk2VUCxK6g
提取码:v9hn
`
include
include <event2/event.h>
include <event2/listener.h>
include <event2/bufferevent.h>
include <string.h>
ifndef _WIN32
include <signal.h>
else
endif
using namespace std;
//错误,超时 (连接断开会进入)
void event_cb(bufferevent *be,short events,void *arg)
{
cout<<"[E]"<<flush;
}
`
标签:v9hn,bufferevent,void,发送数据,服务器,include,代码 来源: https://www.cnblogs.com/sd129/p/13971787.html