X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink%2B%2B.h;h=eeb1cd02ac1793921139e0e8285d7d2cd1fa593f;hb=0e1a437e75080dec585b502ee0031fdb8c1d2468;hp=bca39fd32332a2e3497e08a36f56c39056e49173;hpb=5f2e8877486869471041b0eca1aaed841c41a1a9;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.