开发者

Using boost::asio to find all reachable ips on a subnet

开发者 https://www.devze.com 2023-04-10 00:19 出处:网络
I would like a way to use boost to find all reachable ips(responding to a ping) on a subnet. i.e. given subnet = 10.10.开发者_运维问答10.0 and ips 10.10.10.1-5 that are reachable, the result should b

I would like a way to use boost to find all reachable ips(responding to a ping) on a subnet.

i.e. given subnet = 10.10.开发者_运维问答10.0 and ips 10.10.10.1-5 that are reachable, the result should be a list: 10.10.10.1 , ... , 10.10.10.5

Currently I have a script that pings the subnet and checks the arp cache for reachable ips.


They have a ping example in the docs.

0

精彩评论

暂无评论...
验证码 换一张
取 消