06 2020 档案

摘要:客户端 #pragma once #include <event2/util.h> class libevent_client { public: libevent_client(); ~libevent_client(); void initial(int port); void connect_ 阅读全文
posted @ 2020-06-19 11:49 N_zero 阅读(461) 评论(0) 推荐(0)
摘要:客户端 #pragma once #include <event2/util.h> class libevent_client { public: libevent_client(); ~libevent_client(); void initial(int port); void connect_ 阅读全文
posted @ 2020-06-16 10:34 N_zero 阅读(462) 评论(0) 推荐(0)
摘要:接口:event_base_dispatch /** Event dispatching loop 事件分配循环 This loop will run the event base until either there are no more pending or active, or until 阅读全文
posted @ 2020-06-15 10:19 N_zero 阅读(1210) 评论(0) 推荐(0)
摘要:read,读取数据 /** Read data from a bufferevent buffer. The bufferevent_read() function is used to read data from the input buffer.从输入缓存中读取数据 @param bufev 阅读全文
posted @ 2020-06-15 10:18 N_zero 阅读(1042) 评论(0) 推荐(0)
摘要:/** Allocate and asssign a new event structure, ready to be added. 分配并指定一个新的event结构体,这个结构体将被添加。 The function event_new() returns a new event that can 阅读全文
posted @ 2020-06-12 14:27 N_zero 阅读(660) 评论(0) 推荐(0)
摘要:/** Launch a connect() attempt with a socket-based bufferevent. 使用一个socket-based bufferevent来启动connect() When the connect succeeds, the eventcb will b 阅读全文
posted @ 2020-06-12 11:15 N_zero 阅读(1019) 评论(0) 推荐(0)
摘要:/** Changes the callbacks for a bufferevent.通过回调函数来改变bufferevent @param bufev the bufferevent object for which to change callbacks回调函数将要改变的bufferevent 阅读全文
posted @ 2020-06-12 09:30 N_zero 阅读(1630) 评论(1) 推荐(0)