Does anybody know equivalent for NETLINK Sockets API for MAC OS X ? I am trying to port Linux application to MAC OS X and I couldn’t find anything similar in MACOS.
I need to provide asynchronous access to the network adapter in my application.
Polling network adapter about configuration changes etc every certain amount of seconds is not convenient solution for me. NETLINK Socket API game me way to receive notification only when something interesting happened.
I know that NETLINK is Linux specific thing to communicate between Linux kernel and user space, but maybe there is exist something like NETLINK under MACOS.
I see the the only tool to communicate with kernel – sysctl()
Does anybody have any info?
You can use the kernel control architecture which is documented in the NKE section of their docs that OSX provides for that reason.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With