AndreaDO

导航

2024年3月17日 #

构建自己的muduo库-1

摘要: 构建自己的muduo库-1 由于muduo库的网络库原本使用了很多boost库的内容,所以我想手写自己的my muduo库,使用C++11特性去替换掉boost部分内容 构建项目建立CMake文件 项目根目录下CMakeLists内容 cmake_minimum_required(VERSION 2 阅读全文

posted @ 2024-03-17 20:02 AndreaDO 阅读(74) 评论(0) 推荐(0)

C++ 简单使用Json库与muduo网络库

摘要: C++ 简单使用Json库与muduo网络库 C++ 使用Json库 测试代码均在Ubuntu 20上运行 首先下载json.hpp的代码链接 然后和你的测试代码放在同一目录下面 导入方式 #include "json.hpp" using json = nlohmann::json; json序列 阅读全文

posted @ 2024-03-17 08:46 AndreaDO 阅读(174) 评论(0) 推荐(0)