+ 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);
+ }
+
+ /// 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.
+ * By calling this function with @a inviter_commits_first set to true, the order is reversed.
+ *
+ * @param inviter_commits_first If true, then the node that invited a peer will commit data to disk first.
+ */
+ void set_inviter_commits_first(bool inviter_commits_first) {
+ meshlink_set_inviter_commits_first(handle, inviter_commits_first);
+ }
+
+ /// Set the URL used to discover the host's external address
+ /** For generating invitation URLs, MeshLink can look up the externally visible address of the local node.
+ * It does so by querying an external service. By default, this is http://meshlink.io/host.cgi.
+ * Only URLs starting with http:// are supported.
+ *
+ * @param url The URL to use for external address queries, or NULL to revert back to the default URL.
+ */
+ void set_external_address_discovery_url(const char *url) {
+ meshlink_set_external_address_discovery_url(handle, url);
+ }