X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink%2B%2B.h;h=baf08ae1ef15405aa238360bfbb69a1f2309c5a0;hb=3be09bc77ac43f45d3fc933f90c93567562d9231;hp=1f109849b6408e5cd7487f4365c92b3493a32185;hpb=c68c5ebd8abf7a91f3d0ea3d05aa872b6a40d78e;p=meshlink diff --git a/src/meshlink++.h b/src/meshlink++.h index 1f109849..baf08ae1 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -1150,6 +1150,15 @@ public: meshlink_enable_discovery(handle, enable); } + /// Inform MeshLink that the local network configuration might have changed + /** This is intended to be used when there is no way for MeshLink to get notifications of local network changes. + * It forces MeshLink to scan all network interfaces for changes in up/down status and new/removed addresses, + * and will immediately check if all connections to other nodes are still alive. + */ + void hint_network_change() { + meshlink_hint_network_change(handle); + } + /// Set device class timeouts /** This sets the ping interval and timeout for a given device class. *