Data Structures | Functions
Licensing API

Arnold license system information. More...

Data Structures

struct  AtLicenseInfo
 License info structure. More...
 

Functions

AI_API void AiSetLicenseString (const char *lic)
 Set a license string (which is the content of a node-locked license file) for later use. More...
 
AI_API int AiLicenseGetInfo (AtLicenseInfo *&licenses, unsigned int &n)
 Check the status of the license servers provided through the environment variables solidangle_LICENSE, RLM_LICENSE and ARNOLD_LICENSE_[HOST|PORT] and get information about all the installed licenses in those servers. More...
 

Error Codes

#define AI_LIC_SUCCESS   0
 no error
 
#define AI_LIC_ERROR_CANTCONNECT   1
 can't connect to any RLM server
 
#define AI_LIC_ERROR_INIT   2
 error on initialization
 
#define AI_LIC_ERROR_NOTFOUND   3
 no licenses found (expired or not loaded)
 
#define AI_LIC_ERROR_NOTAVAILABLE   4
 no licenses available (all in use)
 
#define AI_LIC_ERROR   -1
 generic license error
 

Detailed Description

Arnold license system information.

Function Documentation

AI_API void AiSetLicenseString ( const char *  lic)

Set a license string (which is the content of a node-locked license file) for later use.

Parameters
[in]licA LICENSE line enclosed within angle brackets
AI_API int AiLicenseGetInfo ( AtLicenseInfo *&  licenses,
unsigned int &  n 
)

Check the status of the license servers provided through the environment variables solidangle_LICENSE, RLM_LICENSE and ARNOLD_LICENSE_[HOST|PORT] and get information about all the installed licenses in those servers.

This function checks both the connections, the RLM services and the existence of free licenses in the servers. If nothing fails and there are available licenses, the function will return with AI_LIC_SUCCESS status and 'licenses' will return all Arnold usable licenses, otherwise it will return an error code.

Parameters
[out]licensesAll usable licenses held by the RLM license servers
[out]nnumber of elements returned in the licenses vector
Returns
AI_LIC_SUCCESS if successful, error code otherwise.

© 2020 Autodesk, Inc. · All rights reserved · www.arnoldrenderer.com