libsmbclient API for querying LMB?

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


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

> David Wuertele <dave-gnus at bfnet.com> 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.

Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com




More information about the samba-technical mailing list