Table of Contents

Name

PostListenAll- Perform a subscription on all entries in the CONFLIST database

Description

PostListenAll posts subscription requests for all entries in the CONFLIST array to dbman.

PostListenAll traverses the CONFLIST array and uses the information from the CONFLIST records to formulate subscription requests and post the requests to dbman.

It uses lclAddQueLst(3rmt) to perform the subscription request.

If there is an error when lclAddQueLst(3rmt) is called an error message is written to stderr.

This function communicates with dbman in local mode.

This function is part of libmngr.

Syntax

int PostListenAll(
   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 there are problems a complaint is written to stderr and -1 is returned, otherwise 0 is always returned.

Notes

The AccelNET error code from lclAddQueLst(3rmt) should be returned rather than 0 always being returned.

Plan carefully when writing your program and designing your CONFLIST if you use this function because EVERYTHING in the CONFLIST array will be subscribed to. The results can be quite fascinating and the problems very mysterious if you are not careful.

See Also

libmngr(3mngr)

Manual page revision

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


Table of Contents