dchub:// link assistance

Technical discussion about the NMDC and <a href="http://dcpp.net/ADC.html">ADC</A> protocol. The NMDC protocol is documented in the <a href="http://dcpp.net/wiki/">Wiki</a>, so feel free to refer to it.

Moderator: Moderators

Locked
CerebusJam
Posts: 8
Joined: 2003-01-29 07:45
Contact:

dchub:// link assistance

Post by CerebusJam » 2003-01-29 07:57

Let's say, for the sake of example, that I've modified the command line handling code of DC++ to parse the following type of address:

dchub://fav.dc.hub:port/user/path/album

and

dchub://fav.dc.hub:port/user/path/album/file?size=nnnnnn

I've stored all of the parts of the path in strings. My questions:

1. When passing the path to other functions in DC++, do the '/' need to be replaced by '\' ?

2. I know that the current code will only handle the path up to, and including, the user - so the code will, at most, get the file listing from the user. This is done with a HubFrame::openWindow call with the server string, and a QueueManager::getInstance() call with the user string. How would this second call be modified, and which additional function calls added, to be able to add an album to the download queue?

I'll happily share my code with the community once complete.

--C

aDe
Forum Moderator
Posts: 138
Joined: 2003-01-07 09:14
Location: SE
Contact:

Post by aDe » 2003-01-29 09:01

1. The path should already be with backslash afaik (in NMDC)

CerebusJam
Posts: 8
Joined: 2003-01-29 07:45
Contact:

Post by CerebusJam » 2003-01-29 09:30

So replace the '/' with '\', right? I want to make sure that I get the right meaning of backslash. :lol:
--C

Locked