Mini C project - Digging the source ?

Simo Sorce idra at samba.org
Mon Jan 7 04:59:02 GMT 2002


It's yet done it is calle libsmbclient and there is yet some sort of utility/samplae code in the tree that do what you want.

On Mon, Jan 07, 2002 at 12:56:15PM +0100, Ulf Bertilsson wrote:
> Hi again,
> 
> I was wondering if it was possible to take
> out parts of "smbclient" code and make an
> 'standalone' utility ?.
> 
> I'm still newbie to C, but was thinking about doing some
> generic simple socket programming.
> 
> What I'm thinking of is:
> 
> "browserlist"
> 
> Send a query to the subnet for any
> browsermaster and get the output of it's list ?
> 
> I.e
> 
> ./browserlist
> Your sub is 192.168.255.255
> Looking for master browser
> Found one at 192.168.0.1
> SMB server is an Nt4.0 server
> Listing list:
> 
> 	Workgroup
> 		-> Beer  		: Win98
> 		-> Turbo 		: Winnt
> 		-> AMiga4000	: Samba
> 
> So, what the mechanism ?
> 
> Send an "_MSBROWSE_" ? To where ?
> 
> Where can I find the code in the source ?
> 
> Any input ?
> 
> I had some crazy ideas about this as well ;)
> 
> "Makesmbconnection"
> "smbget"
> "smbput"
> 
> --
> Ulf Bertilsson
> 

-- 
Simo Sorce       idra at samba.org
-------------------------------
Samba Team http://www.samba.org




More information about the samba-technical mailing list