How to determine netmask of active interface in Objective-C on a Mac?

前端 未结 3 788
春和景丽
春和景丽 2021-02-10 17:20

I\'m trying to determine the network segment my Macbook is in, because I then want to scan this segment for active hosts (basic IP scanner) by using the CFHost class. Therefore

3条回答
  •  别跟我提以往
    2021-02-10 17:38

    You will have to use the System Configuration API. See System Configuration Programming Guidelines and System Configuration Framework Reference

提交回复
热议问题