摘要:
又有了新思路,复用线程 ThreadPool.hpp #pragma once #include <thread> #include <memory> #include <functional> #include <utility> #include <condition_variable> #in 阅读全文
摘要:
源地址 #include <algorithm> #include <iostream> #include <ostream> #include <bsoncxx/json.hpp> #include <bsoncxx/stdx/make_unique.hpp> #include <mongocxx 阅读全文
摘要:
原文 FFMPEG:https://ffmpeg.org/ 可执行bat @echo off SETLOCAL ENABLEDELAYEDEXPANSION set path=.\m4a set rs=.\mp3 for /F %%i in ('Dir /B %path%') do ( set na 阅读全文
摘要:
链接 SetCommState的struct _DCB类型参数,其值 StopBits= 0,1,2对应的是1bit,1.5bits,2bits ByteSize = 6, 7, 8时StopBits不能为1 ByteSize = 5时StopBits不能为2 阅读全文
摘要:
博客 // GetConnection()自定义函数,获取连接指针,类型_ConnectionPtr _ConnectionPtr pConnection = GetConnection(); _CommandPtr pCommand; _RecordsetPtr pRs; try{ pComman 阅读全文
摘要:
实现 #pragma once #ifndef _LOG_CPP_HPP_ #define _LOG_CPP_HPP_ #include <iostream> #include <string> #include <deque> #include <chrono> #include <thread> 阅读全文
摘要:
个人文章地址 1. 头文件 #pragma once #include <string> #include <memory> #include <tuple> #include <functional> #include <thread> template<typename T> class Thr 阅读全文
摘要:
链接 数据结构 Linux平台 #include <iostream> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/socket.h> #include <netdb.h> #include <sys/unistd.h> 阅读全文
摘要:
链接 HTTP包格式 基本请求格式 基本响应格式 暴力解析代码及测试(记得加参数-std=c++2a) #include <iostream> #include <map> #include <utility> #include <netinet/in.h> #include <cstring> # 阅读全文
摘要:
原产地 有时会添加一个不是映射到请求方法直接返回的拦截器,这个拦截器应该在预验请求拦截器的后边,否则OPTIONS预验请求会被直接返回,带不回跨域信息头 /** * 配置拦截器 * * @author yujie */ @Configuration public class SystemWebCon 阅读全文