what is QlmLicense::ValidateLicenseOnServer(..) about?
Can anyone provide details on this function please?
I was unable to find any information on this in the API, not exactly sure what sort of checks it actually does and if I can count on it for online validation purpose.
Also if the user's computer is NOT connected to the internet then what are the options of handling it while validating the licenses via the server.
thanks in advance!
-
Official comment
Please check this article.
If the computer is not connected to the internet, the behavior is defined by the MaxDaysOffline property.
Comment actions -
Hi John,
According to the technical comment from the code generated by QLM management console automatically:
------
// When ValidateLicenseOnServer is not able to contact the License Server:
// If MaxDaysOffline is set to -1, ValidateLicenseOnServer will aways return true, connectionSuccessfull will be false.
// If MaxDaysOffline is set to a specific value, say 5 days, ValidateLicenseOnServer will return true if no connection was establihed for <= 5 days
// otherwise it will return false.---
Now, my problem is that I've set "MaxDaysOffline" to 10, then I launched my program with internet connection so the API call ValidateLicenseOnServer() accessed the server and validated my license, everything good. Then I unplugged the Ethernet cable, and the ValidateLicenseOnServer() always returns false and with an error code saying I've exceeded the maximum days allowed for offline (while the max days is set to 10!).
Am I missing something here? Is "OfflinePeriodExceededAction" has anything to do with this?
Please sign in to leave a comment.
Comments
6 comments