Quantcast
Channel: 下雨天 » libevent
Browsing all 2 articles
Browse latest View live

让libevent回调到C++类成员函数

libevent是纯C的接口,应用到C++中需要经过一层抽象,如下所示=================类定义=================class A {public:void OnRequest(xx,...);void OnResponse(xx,...);}=================主函数文件==========static void OnRequest_cb(int fd,...

View Article


zmq与libevent共处

可能你会有这种需求,使用zmq来处理消息收发但用libevent来监听描述符。http://inercia.tumblr.com/post/3442759929/zeromq-with-libeven... 阅读全文The post zmq与libevent共处 appeared first on 下雨天.

View Article

Browsing all 2 articles
Browse latest View live