Mini C project - Digging the source ?
Christopher R. Hertel
crh at nts.umn.edu
Mon Jan 7 12:52:03 GMT 2002
I am very enthusiastic regarding libsmbclient. It is a very good idea and
one which I am very glad to see happening. However, I have a few issues
with the design of libsmbclient. These are not problems, per. se., but in
specific cases can cause trouble.
Libsmbclient is based on Samba and uses a lot of samba-isms. On any
system with nmbd running, that's okay. If I recall correctly, however,
libsmbclient does things like read packets out of the unexpected packet
database. Again, this is okay on systems running nmbd.
Also, libsmbclient is designed for Unix. I know Ulf's platform, and it
Personally, I'm working on an NBTD. Several people have asked about this.
The idea is fairly simple: Run a daemon that provides the virtual NetBIOS
layer *separate from* the other layers. This has some disadvantages. For
example, one reason Samba is fast is that we can build and parse packets
all at once. Dividing up the layers would slow things a bit.
On the plus side, it makes it easy to switch between port 139 and port
445 semantics. It also makes it easier to write light-weight clients
and servers--the equivalent of W/9x peer-to-peer type stuff.
Finally, jCIFS already does a lot of what Ulf is looking to do. Ulf, if
you can run Java on the Amiga or convert Java to C or C++ you may be in
> 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
Christopher R. Hertel -)----- University of Minnesota
crh at nts.umn.edu Networking and Telecommunications Services
Ideals are like stars; you will not succeed in touching them
with your hands...you choose them as your guides, and following
them you will reach your destiny. --Carl Schultz
More information about the samba-technical