X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmeshlink.h;h=8293da0ff6aacfa64ed0903af2f38ce84d69f60c;hb=fcd0a7b8c0a823aaa4f9b885a408969b7dc16e00;hp=e0164b7fd7e8bae111743d65484c21d35a40790b;hpb=b16518ed4e156be37adc516eac603272f956298a;p=meshlink diff --git a/src/meshlink.h b/src/meshlink.h index e0164b7f..8293da0f 100644 --- a/src/meshlink.h +++ b/src/meshlink.h @@ -1599,6 +1599,15 @@ void meshlink_set_dev_class_fast_retry_period(struct meshlink_handle *mesh, dev_ */ void meshlink_set_dev_class_maxtimeout(struct meshlink_handle *mesh, dev_class_t devclass, int maxtimeout); +/// Reset all connection timers +/** This resets all timers related to connections, causing pending outgoing connections to be retried immediately. + * It also sends keepalive packets on all active connections immediately. + * + * \memberof meshlink_handle + * @param mesh A handle which represents an instance of MeshLink. + */ +void meshlink_reset_timers(struct meshlink_handle *mesh); + /// 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.