会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
gelare
博客园
首页
新随笔
联系
订阅
管理
2022年9月12日
vscode+cmake+vcpkg的C++环境
摘要: 1、安装cmake 2、安装vcpkg 设置默认的triplet: 安装库: 3、安装vscode安装c++与cmake插件: ctrl+shift+p的“首选项-打开设置”中加入cmake配置: 新建空文件夹,Ctrl+Shift+P中用cmake quickstart生成CMakeLists.t
阅读全文
posted @ 2022-09-12 18:28 gelare
阅读(868)
评论(0)
推荐(0)
2022年1月11日
openssl使用相关问题
摘要: 1、在使用SSL* ssl = SSL_new(ctx)后,立刻调用SSL_CTX_free(ctx)释放ctx安全吗,会不会影响到ssl使用?答: OpenSSL使用了引用计数,SSL_CTX_free只是减少计数,当有对象在引用ctx时,不会真正的释放ctx对象,只有引用计数为0时才会真正释放。
阅读全文
posted @ 2022-01-11 18:30 gelare
阅读(469)
评论(0)
推荐(0)
2021年8月16日
linux下vxlan网络配置
摘要: 目标:在一台linux机器上,配置3个netns, 模拟3个节点,实现3个节点通过vxlan互通。 连接图如下图所示: (1)包括3个netns: net0,net1,net2 (2)每个netns下有一个vxlan(vxlan0,vxlan1,vxlan2)接口,其master为bridge(br
阅读全文
posted @ 2021-08-16 00:37 gelare
阅读(356)
评论(0)
推荐(0)
2020年9月22日
bind9配置相关
摘要: 1、递规与转发 FROM:https://wangjia.net/bo-blog/how-to-deny-recursion-totally-with-bind9/ 作为域名NS记录指向的DNS服务器,不同于开放给公众的DNS服务器,不需要提供本机配置域名之外的域名解析。当DNS解析的域名本机中没有
阅读全文
posted @ 2020-09-22 09:27 gelare
阅读(311)
评论(0)
推荐(0)
2020年8月17日
c++包管理vcpkg
摘要: 1、安装编译 git glone https://github.com/Microsoft/vcpkg cd vcpkg bootstrap-vcpkg.bat 2、搜索与安装 vcpkg search gtest vcpkg install gtest:x64-windows 3、列出已安装的库
阅读全文
posted @ 2020-08-17 16:45 gelare
阅读(518)
评论(0)
推荐(0)
2020年7月29日
python打包成exe
摘要: nuitka --windows-disable-console --recurse-all --output-dir=C:\output --icon=C:\myico.ico ttt.py
阅读全文
posted @ 2020-07-29 14:03 gelare
阅读(142)
评论(0)
推荐(0)
2020年5月31日
wsl2交互
摘要: 1、 PowerShell或CMD中运行linux命令 D:\>wsl ls -l 2、WSL可直中运行的 Windows 可执行文件 gelare@archie:~$ ipconfig.exe /all 3、从windows访问linux文件 \\wsl$ 4、WSL访问 Windows 文件 /
阅读全文
posted @ 2020-05-31 08:48 gelare
阅读(1094)
评论(0)
推荐(0)
2020年5月18日
cargo下载失败报SSL connect error
摘要: 现象: cargo build 时下载失败(Windows 10 x64, build 1903),提示: warning: spurious network error (2 tries remaining): [35] SSL connect error (schannel: next Init
阅读全文
posted @ 2020-05-18 19:08 gelare
阅读(8872)
评论(1)
推荐(2)
2020年5月16日
C++保存成员函数指针
摘要: 成员函数指针保存: char mf_addr_[16]; void (DestT::*memfun)(int); memcpy(&mf_addr_,&memfun,sizeof(memfun)); DEMO: class Signal1{ public: template <class DestT>
阅读全文
posted @ 2020-05-16 14:40 gelare
阅读(638)
评论(0)
推荐(0)
2020年4月24日
rust中的条件编译
摘要: 1、示例:对不同的操作系统调用不同的代码。 use libc; #[cfg(target_os="linux")] fn my_print(){ unsafe{ libc::printf("hello".as_ptr() as *const libc::c_char); } } #[cfg(targ
阅读全文
posted @ 2020-04-24 15:06 gelare
阅读(3199)
评论(0)
推荐(2)
下一页
公告