Using boost::asio to find all reachable ips on a subnet
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.
精彩评论