03 2021 档案
摘要:前言 本文使用的asio1.76.0从github获取,老版本中有一个很重要的结构叫做io_service,新版本中改成了io_context,下面主要通过c++14下的一个异步的例子分析boost.asio的线程模型,其代码结构比较复杂,时间有限不能分析的很详细,只是做大体结构分析 正文 asio
阅读全文
摘要:创建和运行分析 #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <queue> #include "co_routine.h" using namespace std; struct stTask_t { int
阅读全文
摘要:常用命令 创建topic ./kafka-topics.sh --bootstrap-server localhost:9092 --topic topic-create --create --partitions 4 --replication-factor 2 查看所有的topic ./kafk
阅读全文