Checking the status of an asynchronous network interface

On Mac OS X, is there a way to get asynchronous notification when a state of a network interface (en0, en1) changes, such as a network interface, inactive, etc.

Instead of polling for a status, I would like to know if there is a way to get an asynchronous notification, so that whenever there is a change, the notification is fired and the application can process it.

Is it possible?

Thanks,

+8
c ++ c objective-c
source share
1 answer

Check out the top answer here . This is for the iOS SDK, but the mentioned SystemConfigration system is also available on Mac OSX.

-2
source share

All Articles