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

前端 未结 3 1421
别跟我提以往
别跟我提以往 2021-02-10 16:54

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:35

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

提交回复
热议问题