SIMulation Workbench Documentation SIMulation Workbench Documentation

olicense.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "olicense.h"
#include "olicenseconfig.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 dependency graph for olicense.cpp:

Defines

#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_getModuleCountByName (const char *moduleName, int allowDemo)
int ccurSimWB_license (const char *prefix, const char *moduleName, int allowDemo, int printErrMsg)
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

int licServerInUse
int olicDefaultPort = 80
int olicDefaultPortSimWB = 9012
LMX_HANDLE LmxHandle
LMX_FEATURE_INFO FI

Define Documentation

#define MAX_LEN   1024
#define DEMO_MODULE_COUNT   28
#define LICENSEURL   "https://license.simwb.com"
#define OLICENSE_SERVER   1
#define LMX_SERVER   2

Function Documentation

LMX_STATUS LMX_CALLBACK CustomHostIDCallback ( LMX_HOSTID *  pHostID,
int *  npHostIDs 
)
int ccurSimWB_license_getModuleCountByName ( const char *  moduleName,
int  allowDemo 
)
int ccurSimWB_license ( const char *  prefix,
const char *  moduleName,
int  allowDemo,
int  printErrMsg 
)
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 (  ) 

Variable Documentation

int olicDefaultPort = 80
LMX_HANDLE LmxHandle
LMX_FEATURE_INFO FI