VLScgSetNumServers

Syntax

int VLScgSetNumServers (VLScg_HANDLE iHandle, codeT *codeP, char *str);
Argument Description

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

str

Number of License Managers

Description

Sets the number of redundant License Managers. It can be called for long codes only and the number of License Managers should be odd.

Returns

The status code VLScg_SUCCESS is returned if successful. Otherwise, it will return the following error codes:

Error Code Description

VLScg_INVALID_INT_TYPE

If value is not numeric.

VLScg_EXCEEDS_MAX_VALUE

If value exceeds the maximum number of License Managers. Maximum number of License Managers can be 11.

VLScg_LESS_THAN_MIN_VALUE

If the value is less than minimum number of License Managers that is equal to or less than 2.

For the complete list of the error codes, refer to License Generation and Revocation Error Codes .