Search:

As defined in xcapi.h

xerr xcRequestItemByString(xhandle object,
const char *key_string,
xuint64 turnkey,
xuint32 *slot);

Description:

Adds the item to the object's current list of content items and enables the flow of notification events for the item. The targeted slot must be EMPTY.

Note that the xcRequestItemByString() call returns an XSUCCESS status if the item is properly requested (meaning that all the parameters for the request are well formed, the targeted slot is empty, and the connection to the appliance is active). In addition, the call triggers the event notification mechanism, and an EventSubscribe object is created. The xerr status in the XFLD_EVT_STATUS field of that object indicates whether the requested item was successfully subscribed to.

In general, calls to xcRequestItemByString() are non-blocking. However, when the number of outstanding requests per application exceeds the permitted limit of 500, subsequent calls to the function will be blocked until the number of outstanding requests again falls below 500.

Restrictions:

Parameters:

Returns:

An xerr type indicating the status of the operation.

Common error codes:

XSUCCESS The item request was successful.
XINVAL An invalid parameter was supplied.
XNOTCONNECTED Session not connected.
XSOCKET Socket error when sending request. Connection in an invalid state.
XTHREAD Called from an invalid thread.
XBUSY Specified slot already has an existing item.
XBADHANDLE Invalid handle.



[ Top Of Page ]