Versions Compared

Key

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

...

This function will send a message to the server from which a feature was checked out.

Example

You can use the following code to send a message to the server from which a feature was checked out. Please note that a feature must be checked out before a message can be logged in the license server's log.

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)); // Before sending a message we need to checkout a license
  exit_on_error(LMX_ServerLog(h, "f2", "A message to be logged by the server"));
  return 0;
}