Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

For local features, the LMX_Heartbeat function checks whether HostIDs are valid. Note that devices such as dongles can be removed during runtime.

For network features, in addition to checking HostIDs, the LMX_Heartbeat function checks whether the network connection to the license server is working.

...

Code Block
languagecpp
#include <lmx.h>
#include <stdio.h>
 
LMX_HANDLE h;
 
int main() {
  exit_on_error(LMX_Init(&h));
  exit_on_error(LMX_Checkout(h, "f2", 1, 0, 1));
  exit_on_error(LMX_Heartbeat(LmxHandleh, "f2"));
  return 0;
}

The following example shows how to set an automatic heartbeat with the heartbeat frequency set for 60 seconds.

...