X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink%2B%2B.h;fp=src%2Fmeshlink%2B%2B.h;h=eeb1cd02ac1793921139e0e8285d7d2cd1fa593f;hb=da55b444c063c510f37e4f8527982eb86f01c7b3;hp=bca39fd32332a2e3497e08a36f56c39056e49173;hpb=ac1893fee5773e3c8f0c5ec0f24d5c0feaa0f7f4;p=meshlink diff --git a/src/meshlink++.h b/src/meshlink++.h index bca39fd3..eeb1cd02 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -1049,6 +1049,16 @@ public: meshlink_set_dev_class_fast_retry_period(handle, devclass, fast_retry_period); } + /// Set device class maximum timeout + /** This sets the maximum timeout for outgoing connection retries for a given device class. + * + * @param devclass The device class to update + * @param maxtimeout The maximum timeout between reconnection attempts, in seconds. The default is 900. + */ + void set_dev_class_maxtimeout(dev_class_t devclass, int maxtimeout) { + meshlink_set_dev_class_maxtimeout(handle, devclass, maxtimeout); + } + /// Set which order invitations are committed /** This determines in which order configuration files are written to disk during an invitation. * By default, the invitee saves the configuration to disk first, then the inviter.