摘要: 简述利用 wireshark + lua 实现自定义协议实时解析,保存分析结果 阅读全文
posted @ 2023-01-25 11:56 三岁玩童 阅读(1131) 评论(0) 推荐(0) 编辑
摘要: 1. //.h extern const char* tb_1[][2]; extern char tb_2[][2]; //.cpp printf(" %s \n",tb_1[2][1]); printf(" %c \n",tb_2[2][1]); tb_1[1][1] = "c"; tb_2[1 阅读全文
posted @ 2023-01-24 15:19 三岁玩童 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <vector> 3 #include <list> 4 #include <map> 5 #include <set> 6 #include <string> 7 #include <algorithm> 8 #include <f 阅读全文
posted @ 2023-01-22 16:11 三岁玩童 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 1 #include <boost/foreach.hpp> //-lboost_iostreams 2 #include "muduo/base/CountDownLatch.h" 3 #include "muduo/base/Thread.h" 4 #include <iostream> 5 # 阅读全文
posted @ 2023-01-20 15:33 三岁玩童 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1 #include <boost/thread/thread.hpp> 2 #include <boost/thread/mutex.hpp> 3 #include <boost/thread/condition.hpp> 4 #include <iostream> 5 using namespa 阅读全文
posted @ 2023-01-05 23:17 三岁玩童 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1 #include <boost/thread/thread.hpp> 2 #include <boost/thread/mutex.hpp> 3 //#include <boost/bind.hpp> //包含会报错 4 #include <iostream> 5 using namespace 阅读全文
posted @ 2023-01-05 23:15 三岁玩童 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 一个动态链接到较早版本的库的程序,在不经过重新编译的情况下能够继续运行在新版本的库,这样的库即“二进制兼容” .h 1 /*二进制兼容库 2 * 隐藏实现细节:我们只需要发布 WidgetLib 的头文件和二进制文件,.cpp 文件可以是闭源的 3 *头文件很干净,没有实现细节的干扰,可以作为 AP 阅读全文
posted @ 2022-12-08 17:51 三岁玩童 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <iomanip> 3 #include <cstdio> 4 #include <fstream> 5 using namespace std; 6 7 // CPP program to demonstrate working o 阅读全文
posted @ 2022-12-08 11:56 三岁玩童 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 以下内容取自网上公开文档 1.下载源码:http://www.lua.org/ftp/ 2.编译dll,lib和exe: 2.1在“C/C++” -> “预处理器” -> “预处理器定义” 中添加LUA_BUILD_AS_DLL:不加没有lib 2.2不添加(lua.c 和 luac.c) 2.3编 阅读全文
posted @ 2022-02-02 23:23 三岁玩童 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 1:效果 2:代码: 1 #pragma once 2 3 #include <QtWidgets/QMainWindow> 4 #include "ui_QLogWidget.h" 5 #include <QQueue> 6 #include <QMutex> 7 #include <QWaitC 阅读全文
posted @ 2021-02-14 22:05 三岁玩童 阅读(52) 评论(0) 推荐(0) 编辑