libevent入门教程:Echo Server based on libevent
ent_set_timeouts(bev, struct timeval *READ, struct timeval *WRITE)来设置读写超时, 在error_cb里面处理超时。 *. read_cb和write_cb的原型是 void read_or_write_callback(struct bufferevent *bev, void *arg) err...
原创
2013-12-30 09:23:04 ·
105 阅读 ·
0 评论