eOption

LMX_OPT_HEARTBEAT_CONNECTION_LOST_FUNCTION

This flag causes a callback function to be called each time the connection to the license server is lost and heartbeats are failing. When this is called, all features are considered lost temporarily or permanently, depending on the results of the LMX_OPT_HEARTBEAT_CHECKOUT_SUCCESS_FUNCTION and LMX_OPT_HEARTBEAT_CHECKOUT_FAILURE_FUNCTION callbacks.

The parameter nFailedHeartbeats starts at 1 and goes up to the number of heartbeat attempts specified by LMX_OPT_AUTOMATIC_HEARTBEAT_ATTEMPTS. This parameter is per server.

pSetting

Function pointer value.

Default value:

NULL (disabled)

Prototype:

void (LMX_CALLBACK *HeartbeatConnectionLost_pfn)
(
  void *pVendorData, /* Vendor-specified data */
  const char *szHost, /* NULL-terminated string containing license server host */
  int nPort, /* TCP port number of license server */
  int nFailedHeartbeats /* The number of times a heartbeat has failed per server*/
);