libsmbclient API for querying LMB?

Richard Sharpe rsharpe at
Tue Nov 11 03:50:25 GMT 2003

On Mon, 10 Nov 2003 Derrell.Lipman at wrote:

> David Wuertele <dave-gnus at> writes:
> > 1.  Does running smbc_readdir() multiple times result in multiple
> >     packets on the LAN?  Or does it cache and return?
> smbc_opendir() does all of the work on the LAN, and can take a looonnnnggggg
> time if reading a large folder (not an issue for your browsing usage).
> smbc_readdir() just returns data from the cache.  smbc_closedir() frees the
> cache.

This was one of the aspects of the underlying libsmb routines that I was 
unhappy with, but have never had time to fix it. It really should work 
more like findfirst and findnext.

Richard Sharpe, rsharpe[at], rsharpe[at], 

More information about the samba-technical mailing list