ContextNew Function

Description

Establishes a License Manager context for subsequent administration requests.

Usage Notes

This function establishes a context to a Sentinel License Manager.

Deprecated. This function is replaced by the ContextNewScope function.

Syntax

sntl_admin_status_t  SNTL_ADMIN_CALLCONV sntl_admin_context_new(
                   sntl_admin_context_t ** admin_context,
                   const char *             host,
                   sntl_admin_u16_t         port,
                   const char *             password 
                   )

Parameters

admin_context

Pointer to the License Manager context created for this session

host

Host name or IP address of the targeted License Manager

port

Port number of the targeted License Manager (0 is default port 1947)

password

Pointer to a password string (or NULL)

NOTE   To create a context for the local License Manager, call the function with host=NULL, port=0, password=NULL

Return Values

SNTL_ADMIN_STATUS_OK

SNTL_ADMIN_INSUF_MEM

SNTL_ADMIN_LOCAL_ONLY

Related Topics

ContextDelete Function

ContextNewScope Function

sntl_admin_context_new Screen