摘要: 背景及问题: 目前很多局域网设备通过mNDS协议实现互联,IP地址为自动IP段-169.254.x.x,有时候设备厂家提供的API需要通过知晓局域网中的IP地址/设备名,才能连接该设备。这样要求每个软件必须配置设备名或者启动时遍历所有IP(6w+),不是很方便,这时候可以通过mDNS查询,自动拿到设 阅读全文
posted @ 2023-11-22 21:41 robot2017 阅读(693) 评论(0) 推荐(0)
摘要: 问题: 上一篇async/await 致WPF卡死问题(https://www.cnblogs.com/stephen2023/p/17725159.html),介绍主线程阻塞,async/await导致卡死问题,同样的代码在console下却并不会出现卡死。 static Stopwatch sw 阅读全文
posted @ 2023-09-24 22:41 robot2017 阅读(251) 评论(0) 推荐(0)
摘要: 问题代码: xmal:一个按钮+一个显示框 1 <Button Width="100" Height="50" Margin="10" Click="Button_Click">test</Button> 2 <TextBox x:Name="display" Width="300" Height= 阅读全文
posted @ 2023-09-23 21:51 robot2017 阅读(489) 评论(0) 推荐(0)
摘要: 问题代码: 1 #include<windows.h> 2 #include<iostream> 3 #include<thread> 4 HANDLE h1; 5 HANDLE h2; 6 7 void CALLBACK test(PVOID a, BOOLEAN b) 8 { 9 std::co 阅读全文
posted @ 2023-08-26 17:59 robot2017 阅读(445) 评论(0) 推荐(0)