![]() |
Real-Time API Revision2025.2-0
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include "olicense.h"#include "olicenseconfig.h"#include "olicensethread.h"#include "licenseinfo.h"#include "olicenseinfo.h"#include "olicensesupport.h"#include "lmx.h"#include <sys/stat.h>#include <errno.h>#include "libgetID.h"#include "simerrors.h"#include "dirconfig.h"#include <iostream>#include "olicensethreadmanager.h"
Macros | |
| #define | MAX_LEN 1024 |
| #define | DEMO_MODULE_COUNT 28 |
| #define | LICENSEURL "https://license.simwb.com" |
| #define | OLICENSE_SERVER 1 |
| #define | LMX_SERVER 2 |
Functions | |
| LMX_STATUS LMX_CALLBACK | CustomHostIDCallback (LMX_HOSTID *pHostID, int *npHostIDs) |
| int | ccurSimWB_license_wsl_getModuleCountByName (const char *moduleName, int allowDemo) |
| int | ccurSimWB_license_getModuleCountByName (const char *moduleName, int allowDemo) |
| int | ccurSimWB_license_wsl_core (const char *prefix, const char *moduleName, int allowDemo, int printErrMsg, int keepModuleLocked) |
| int | ccurSimWB_license_wsl (const char *prefix, const char *moduleName, int allowDemo, int printErrMsg, const char *caller, int keepModuleLocked, int numRequired) |
| int | ccurSimWB_license_wsl_addclient (const char *moduleName, int moduleNum, int printErrMsg, const char *caller, int keepModuleLocked) |
| int | ccurSimWB_license_wsl_remclient (int moduleNum, int clientLicHandle, int printErrMsg, const char *caller, int keepModuleLocked) |
| int | ccurSimWB_license (const char *prefix, const char *moduleName, int allowDemo, int printErrMsg) |
| void | ccurSimWB_license_wsl_print_error (const char *prefix, std::string xmlData) |
| std::string | extractToken (const std::string &xmlString, const std::string &token) |
| void | ccurSimWB_license_print_error (const char *prefix) |
| void | getOLicenseServerIPAddress (char *ipAddressStr) |
| int | getOLicenseServerPortNum () |
| void | getDemoExpirationDate (char *demo_exp_date) |
| void | displayLicenseInfo (FILE *fp) |
| int | ccurSimWB_license_dev_core (int *is_demo, char *demo_exp_date, int *lic_server) |
| int | ccurSimWB_license_sim_core () |
Variables | |
| OLicenseThreadManager * | gc_OLicenseThreadManager = NULL |
| OLicenseThreadManager * | gs_OLicenseThreadManager = NULL |
| int | licServerInUse |
| int | olicDefaultPort = 80 |
| int | olicDefaultPortSimWB = 9012 |
| LMX_HANDLE | LmxHandle |
| LMX_FEATURE_INFO | FI |
| #define MAX_LEN 1024 |
| #define DEMO_MODULE_COUNT 28 |
| #define LICENSEURL "https://license.simwb.com" |
| #define OLICENSE_SERVER 1 |
| #define LMX_SERVER 2 |
| LMX_STATUS LMX_CALLBACK CustomHostIDCallback | ( | LMX_HOSTID * | pHostID, |
| int * | npHostIDs ) |
| int ccurSimWB_license_wsl_getModuleCountByName | ( | const char * | moduleName, |
| int | allowDemo ) |
| int ccurSimWB_license_getModuleCountByName | ( | const char * | moduleName, |
| int | allowDemo ) |
| int ccurSimWB_license_wsl_core | ( | const char * | prefix, |
| const char * | moduleName, | ||
| int | allowDemo, | ||
| int | printErrMsg, | ||
| int | keepModuleLocked ) |
| int ccurSimWB_license_wsl | ( | const char * | prefix, |
| const char * | moduleName, | ||
| int | allowDemo, | ||
| int | printErrMsg, | ||
| const char * | caller, | ||
| int | keepModuleLocked, | ||
| int | numRequired ) |
| int ccurSimWB_license_wsl_addclient | ( | const char * | moduleName, |
| int | moduleNum, | ||
| int | printErrMsg, | ||
| const char * | caller, | ||
| int | keepModuleLocked ) |
| int ccurSimWB_license_wsl_remclient | ( | int | moduleNum, |
| int | clientLicHandle, | ||
| int | printErrMsg, | ||
| const char * | caller, | ||
| int | keepModuleLocked ) |
| int ccurSimWB_license | ( | const char * | prefix, |
| const char * | moduleName, | ||
| int | allowDemo, | ||
| int | printErrMsg ) |
| void ccurSimWB_license_wsl_print_error | ( | const char * | prefix, |
| std::string | xmlData ) |
| std::string extractToken | ( | const std::string & | xmlString, |
| const std::string & | token ) |
| void ccurSimWB_license_print_error | ( | const char * | prefix | ) |
| void getOLicenseServerIPAddress | ( | char * | ipAddressStr | ) |
| int getOLicenseServerPortNum | ( | ) |
| void getDemoExpirationDate | ( | char * | demo_exp_date | ) |
| void displayLicenseInfo | ( | FILE * | fp | ) |
| int ccurSimWB_license_dev_core | ( | int * | is_demo, |
| char * | demo_exp_date, | ||
| int * | lic_server ) |
| int ccurSimWB_license_sim_core | ( | ) |
| OLicenseThreadManager* gc_OLicenseThreadManager = NULL |
| OLicenseThreadManager* gs_OLicenseThreadManager = NULL |
| int licServerInUse |
| int olicDefaultPort = 80 |
| int olicDefaultPortSimWB = 9012 |
| LMX_HANDLE LmxHandle |
| LMX_FEATURE_INFO FI |