chacham15
chacham15

Reputation: 14251

What is the Mac OSX version of NotifyAddrChange?

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

Answers (1)

MByD
MByD

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

Related Questions