Table of Contents

Name

GetCtlReadValsAll - get current value from dbman for all CONFLIST entries

Description

GetCtlReadValsAll requests the current value of the parameters in a CONFLIST array.

GetCtlReadValsAll traverses the CONFLIST array and formulates a query to dbman for the current value of the parameter for each member of the array. The request is posted to dbman and GetCtlReadValsAll waits for an answer and places the answer in the CONFLIST record’s Current field.

GetCtlReadValsAll uses lclReqParAns(3rmt) to communicate with dbman. lclReqParAns(3rmt) waits for an answer from dbman so GetCtlReadValsAll should be used on a file descripter where nothing has been subscribed to.

Usually programs using this function will open two channels to dbman. One channel is used to post subscriptions and process data asyncronously from dbman as it arrives. The other channel is used with functions which will post requests to dbman for information and wait for the answer.

If there is an error when lclReqParAns(3rmt) is called an error message is written to stderr and the array traversal is terminated.

This function communicates with dbman in local mode.

This function is part of libmngr.

Syntax

int GetCtlReadValuesAll (
   int s,

   CONFLIST CFpnt[],

   int Size,

   );

Arguments

s

database channel

CFpnt

The pointer to the start of the CONFLIST array

Size

the size of the CONFLIST array.

Return Value

If an error occurs when lclReqParAns(3rmt) is called the AccelNET error code from lclReqParAns(3rmt) is returned and the array traversal is terminated.

If there is no error and the array traversal completes successfully ERRok is returned.

Notes

CONFLIST.Previous isn’t updated by the function, hmm....

See Also

libmngr(3mngr)

Manual page revision

$Id: GetCtlReadValsAll.3,v 1.1 2002/04/07 18:35:52 kitchen Exp $


Table of Contents