# Utility **Repository Path**: langxm2006/utility ## Basic Information - **Project Name**: Utility - **Description**: 封装了常用的工具接口,文件操作、解析,网络通信等 - **Primary Language**: C++ - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-01 - **Last Updated**: 2025-12-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # utility #### 介绍 封装了mingw和linux下的轻量化通信接口库,可以设置交叉编译,适配到嵌入式平台中使用。目前支持的编译环境为windows下mingw x64,以及linux下,ubuntu 18.04 LTS。 #### common是常用的文件操作、解析等接口: #### communication中通信接口包含: 1. 用easywsclient实现的websocket客户端,以及civetweb实现的websockt、http服务端; 2. 用httplib实现的http客户端与服务端; 3. 用asio实现的tcp和udp客户端和服务端; 4. 用mosquitto实现的mqtt客户端;(可能需要系统安装ares库,sudo apt install libc-ares-dev -y) 5. 集成系统接口的消息队列和有名管道,实现进程间通信(IPC); 6. 封装了一个定时器Timer工具类; 7. 用sqlite3实现的sqlite3的操作工具类; #### test中包含对业务接口的使用和测试示例。 #### WatchDog是看门狗程序。 cmake .. cmake --build . --target install cmake --build . --target clean-all