X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink.h;h=e3a7ca942ae3b30de27a8ce18deaa646def9f08e;hb=529b8fab8c21e7ae5af91d742ff202eab38e51f3;hp=98a34bd651d72f9a25a9a6b6aadc4eb9b2b49bc9;hpb=42cef01039177f3c762001439c8fb6bbdcd6e159;p=meshlink diff --git a/src/meshlink.h b/src/meshlink.h index 98a34bd6..e3a7ca94 100644 --- a/src/meshlink.h +++ b/src/meshlink.h @@ -1524,6 +1524,17 @@ extern bool meshlink_encrypted_key_rotate(struct meshlink_handle *mesh, const vo */ extern void meshlink_set_dev_class_timeouts(struct meshlink_handle *mesh, dev_class_t devclass, int pinginterval, int 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. + * + * \memberof meshlink_handle + * @param mesh A handle which represents an instance of MeshLink. + * @param devclass The device class to update + * @param fast_retry_period The period during which fast connection retries are done. The default is 0. + */ +extern void meshlink_set_dev_class_fast_retry_period(struct meshlink_handle *mesh, dev_class_t devclass, int fast_retry_period); + #ifdef __cplusplus } #endif