About Unified API Sample Programs
The following Unified API C language samples are available inside the Sentinel RMS SDK installation at: <install_dir>/Samples/C directory .
Sample | Description | Windows | UNIX | Android |
---|---|---|---|---|
Samples for on-premises deployment mode (available with the Sentinel RMS SDK) | ||||
sntl_demo | Demonstrates license consumption for network licensing using the basic Unified API. For standalone licensing, set the License Manager to be contacted as no-net. | Yes | Yes | Yes |
sntl_revoke | Demonstrates license revocation process using the Unified API. | Yes | Yes | No |
sntl_tool | Demonstrates the use of Unified API for the specific tasks, such as license or commuter code installation, commuter code checkout (transfer), decode, uninstallation, and locking code generation. | Yes | Yes | Yes |
sntl_lmadmin | Demonstrates the usage of LmAdminAPI for termination of active user sessions | Yes | Yes | No |
sntl_process_ack | Demonstrates the processing of usage (.udb) files corresponding to acknowledgment files (status success/failure). In case of success, corresponding usage files are deleted, whereas in case of failure corresponding usage files are moved to the corrupted folder. | Yes | Yes | Yes |
sntl_lspmgmtinit | Demonstrates the persistence initialization using the Unified API. | Yes | Yes | Yes |
sntl_lspmgmtclean | Demonstrates the persistence cleaning using the Unified API. | Yes | Yes | Yes |
Samples for Lease mode (available with SCL Add-on package that also contains a separate solution file, make file, and a Quick Start Guide that describes in detail the various steps of using these samples) | ||||
sntl_lease_demo | Demonstrates the standalone license consumption using basic Unified API under the Lease mode. | Yes | Yes | Yes |
sntl_lease_tool | Demonstrates the use of Unified API for the specific tasks, such as fingerprint generation and force synchronization under the Lease mode. | Yes | Yes | Yes |
Samples for Connected (Cloud LM) mode | ||||
sntl_cloud_demo | Demonstrates the license consumption using the Unified API. | Yes | Yes | Yes |
Building the sntl_demo Sample
To run the sntl_demo sample:
>Go to <installdir>\Samples\C directory.
>On Windows, use the solution file (available in <installdir>\Samples\C directory) to build the API (Unified and VLS) samples.
•Alternatively, these can be built using one of the make files provided for the different compiler versions (such as, sample32.MSVS2012.mak, sample32.MSVS2015.mak and so on). For example, use the following command in MSVS 2012 to build all the samples in one go: nmake /f sample32.MSVS2012.mak all (Microsoft Visual Studio 2012)
>On UNIX, use one of the following command to build the sample:
•32-bit - [g]make -f makefile32 sntl_demo
•64-bit - [g]make -f makefile64 sntl_demo
>On Android, use the following command to build the sample:
•64-bit - make -f makefile64 sntl_demo
>On Mac, use one the following command to build the sample:
•64bit: [g]make -f makefile64 sntl_demo
•64bit universal: [g]make -f makefile64 MAC_UNIVERSAL=1 sntl_demo
License Codes for Using Samples
To evaluate the Unified API samples, generate a network license for the following feature and version:
>Feature: Addition
>Version: 1