X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fmeshlink%2B%2B.h;h=3599cc55f44c7b59a64f66eab4aece32479ba6ff;hp=74ec06e5a5bd37f80f8e9af866be525dd183cf2e;hb=529b8fab8c21e7ae5af91d742ff202eab38e51f3;hpb=5f79c2c0882e03648acb9c4a2f6780a7513c61aa diff --git a/src/meshlink++.h b/src/meshlink++.h index 74ec06e5..3599cc55 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -990,7 +990,20 @@ public: * @param pingtimeout The required time within which a peer should respond, in seconds. The default is 5. * The timeout must be smaller than the interval. */ - void set_dev_class_timeouts(dev_class_t devclass, int pinginterval, int pingtimeout); + void set_dev_class_timeouts(dev_class_t devclass, int pinginterval, int pingtimeout) { + meshlink_set_dev_class_timeouts(handle, devclass, pinginterval, pingtimeout); + } + + /// Set device class fast retry period + /** This sets the fast retry period for a given device class. + * During this period after the last time the mesh becomes unreachable, connections are tried once a second. + * + * @param devclass The device class to update + * @param fast_retry_period The period during which fast connection retries are done. The default is 0. + */ + void set_dev_class_fast_retry_period(dev_class_t devclass, int fast_retry_period) { + meshlink_set_dev_class_fast_retry_period(handle, devclass, fast_retry_period); + } private: // non-copyable: