title: How to detect IP address change on OSX programmatically in C or C++
body: <p>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 ...</p>
  
  <p>Anyone has done something similar? I currently poll every minute and I need to change that to be more event driven.</p>