01 2023 档案
摘要:简述利用 wireshark + lua 实现自定义协议实时解析,保存分析结果
阅读全文
摘要: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
阅读全文
摘要:1 #include <iostream> 2 #include <vector> 3 #include <list> 4 #include <map> 5 #include <set> 6 #include <string> 7 #include <algorithm> 8 #include <f
阅读全文
摘要:1 #include <boost/foreach.hpp> //-lboost_iostreams 2 #include "muduo/base/CountDownLatch.h" 3 #include "muduo/base/Thread.h" 4 #include <iostream> 5 #
阅读全文
摘要:1 #include <boost/thread/thread.hpp> 2 #include <boost/thread/mutex.hpp> 3 #include <boost/thread/condition.hpp> 4 #include <iostream> 5 using namespa
阅读全文
摘要:1 #include <boost/thread/thread.hpp> 2 #include <boost/thread/mutex.hpp> 3 //#include <boost/bind.hpp> //包含会报错 4 #include <iostream> 5 using namespace
阅读全文
摘要:1:gcc -E a.c > a.txt 预处理,可用于确认选项-L 的目录是正确,检查头文件引用,代码的错不报 2:gcc -S a.c语法的错会报,生成汇编,不需要库 3:gcc -c a.cobj文件,编过代码OK,不需要库 4:gcc a.c
阅读全文