libsmbclient API for querying LMB?
Richard Sharpe
rsharpe at richardsharpe.com
Mon Nov 10 20:39:00 GMT 2003
On Mon, 10 Nov 2003, David Wuertele wrote:
> Me> I would like to get an array of struct containing the current
> Me> browse list from the LMB. Is there a libsmbclient API for doing
> Me> this?
>
> Jelmer> Use smb:// for browsing the list of workgroups/domains or
> Jelmer> smb://name-of-workgroup for browsing the list of servers in a
> Jelmer> workgroup/domain.
>
> Thanks, but I guess what I was really asking was this:
>
> Is there a *function* in libsmbclient, like
> "get_browse_list(&this_workgroup)", that I can call from my C program,
> to have it query the LMB and return the list of servers in a
> workgroup?
>
> Since I already know how to find the LMB, it could also look like
> this: "get_browse_list(&this_server)"
Hmmm, as I recall, there is a lower layer routine that deals with this.
> It is ok if it lists more than the servers in the workgroup.
Well, it will, I think, if there are more than one workgroup on the
subnet.
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