void parse(const
char *name, bool
interpretDirs = true)
The following format are accepted :
. smb://user:password@workgroup/host/share/path
. smb://user:password@host:IP/share/path
. \\host\share\path
You can omit any field, so long as there is no confusion. For example opendir("smb://") is a virtual directory that contains the list of workgroups, but "smb://share/path" is invalid (or rather, it will not do what you expect).
name should contain the URL to parse in ASCIIZ.
interpretDirs should be set to true (default) if you want the library to interpret "." and ".." as special directories.
You can get the parsed results using the corresponding functions. For example, user() will return the user component of the last parsed URL. Unlike the previous versions of libsmb, you should not delete those results.
Copyright © Nicolas Brodu, 1999 - 2000