How to detect IP address change on OSX programmatically in C or C++

Viewed 8673

I have to be able to detect an IP address change for my Mac client. I need to perform an action every time I get a new one, when I go from wifi to wired ...

Anyone has done something similar? I currently poll every minute and I need to change that to be more event driven.

1 Answers
Related