开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜