Jean Francois Micouleau
Jean-Francois.Micouleau at dalalu.fr
Wed Apr 17 00:30:03 GMT 2002
On Wed, 17 Apr 2002, Rafal Szczesniak wrote:
> On Wed, 17 Apr 2002, Tim Potter wrote:
> > All the rpc client routines send the request and receive the reply,
> > returning any useful data to the caller. If any subsequent calls are
> > required it's up to the caller to do this.
> Hmmm, you're right, but subsequent calls will be needed in 90% of
> cases. Enumeration of trusted domains is performed to get _full_ list of
> entries, mostly.
it's how the API has been designed.
> > For example the spoolss commands require a buffer size for the return
> > data. The routines in cmd_spoolss.c re-call the cli_spoolss_* routines
> > as needed to complete the call.
> Is it the case when all the data is usually needed or you can be selective
> since it's enough to get just a fragment of all ?
it depends on the functions. Some take a blob buffer (like some spoolss
functions) and you have to re-issue the command to get the whole buffer in
one call. Some others take a (first entry, number of entries) values tuple
to indicate which values to return.
More information about the samba-technical