摘要:
#include #include #include #include #include #include #include #include /* 设置计数,只允许echo_write_cb调用一次 */static int count = 1;/*当有数据可读的时候,会调用这个函数 */static void echo_read_cb(struct bufferevent *bev, void *ctx){ printf("Echo_read_cb is called\n"); struct evbuffer *input = bufferevent_get_input 阅读全文
posted @ 2013-12-25 20:26
chunlinge
阅读(419)
评论(0)
推荐(0)

浙公网安备 33010602011771号