nosferatu,
To answer your questions exactly,
The protocols don't communicate.
SMB shares aren't available over HTTP (unless someone has created an HTTP server that can serve up smb shares).
SMB is not transformed into a URL, in some implementations it is actually the other way around. The following paragraph alludes to the fact that a browsing application of some sort (Konqueror, for example) may make the difference between SMB and HTTP transparent by allowing the use of some SMB URL like:
smb://<server>/<share>
That URL would be parsed by the SMB engine, separate from HTTP.
Code:
"There is, in fact, such a thing as an SMB URL. It fits into the general URI syntax and can be used to specify files, directories, and other SMB-shared stuff. It is intended as a more portable, and more complete way to specify SMB paths at the application level.
As of this writing, the SMB URL is only documented in an IETF Internet Draft, and is not yet any kind of standard. That hasn't stopped folks from implementing it, though. The SMB URL is supported in a wide variety of products including the KDE and GNOME desktop GUI environments, web browsers such as Galeon and Konqueror, and Open Source CIFS projects like jCIFS and libsmbclient (the latter is included with Samba). Thursby Software and Apple Computer also make use of the SMB URL in their commercial CIFS implementations. " ([URL unfurl="true"]http://ubiqx.org/cifs/implementing[/URL] cifs smb.htm)
The above reference is excellent (and is one part of several pages). It goes into great detail about the SMB (CIFS) protocol and how to use it (examples in C for *nix).
SMB runs directly over TCP/IP, or over NBT (session layer, for legacy apps).
If you are looking for ideas for your own implementation of SMB, a nice starting place is the file nbtscan.c (google for it). It only deals with SMB names but gives you a good idea of what you are dealing with. (or you could sort through the Samba source code, but I'm not sure you have several years of free time
Hope that helps.
-Mike
"But Gandalf laughed, and replied: 'You would not wonder, if you used this herb yourself. You might find that smoke blown out cleared your mind of shadows within. Anyway, it gives patience, to listen to error without anger.'"
-Unfinished Tales, J.R.R. Tolkien