Reputation: 14251
I want a function which will block until an interface is bound/unbound for OS X (i.e. the equivalent of Windows' NotifyAddrChange
. Anyone know how to do this?
Upvotes: 2
Views: 331
Reputation: 137352
You are looking for SCNetworkReachability
, take a look at the reference.
Note that you need to include <SystemConfiguration/SystemConfiguration.h>
to use it.
Upvotes: 1