Hi Jeremy, No, there's not. I think it could be implemented on linux using the NETLINK_ROUTE netlink family and on Windows maybe with the NotifyAddrChange function [2].
[1]: http://man7.org/linux/man-pages/man7/rtnetlink.7.html [2]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa366329(v=vs.85).aspx . Best regards, Santi 2018-03-08 23:35 GMT+01:00 Jeremy Friesner <[email protected]>: > Hi all, > > I see that libuv has a function uv_interface_addresses() that returns a > list of uv_interface_address_t structures describing the state of the > network interfaces attached to the machine, which is good. > > My question is, is there any mechanism in libuv that will call a > notification-callback so that my program will know when the computer's > network interfaces have changed (i.e. when an interface has come online, > gone offline, had its IP address change, etc)? With that I could then > call uv_interface_addresses() again to see the new state of things, and > update my program's behavior as necessary. > > Thanks, > Jeremy > > -- > You received this message because you are subscribed to the Google Groups > "libuv" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/libuv. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
