downloading 0.401 filelist on dc++ 0.68+

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
adrian_007
Posts: 32
Joined: 2006-03-06 10:54
Location: Poland

downloading 0.401 filelist on dc++ 0.68+

Post by adrian_007 » 2006-09-23 16:47

can i change some part of code, to download filelist from dc++ 0.401?
where exacly? :)

Pothead
Posts: 223
Joined: 2005-01-15 06:55

Post by Pothead » 2006-09-23 19:50

You need to change code in the 0.401 client.
Or, modify the adcget? command, to supply different information, depending on version in the pk string. :)

PPK
Posts: 9
Joined: 2003-01-03 17:11
Contact:

Re: downloading 0.401 filelist on dc++ 0.68+

Post by PPK » 2006-09-23 20:36

adrian_007 wrote:can i change some part of code, to download filelist from dc++ 0.401?
Yes you need to change code in 0.68+, it is easy.
adrian_007 wrote:where exacly? :)
DownloadManager.cpp, you need to use $Get command to get userlist from them instead of buggy $UGetBlock...
In DC++ 0.695 it is function DownloadManager::checkDownloads, replace

Code: Select all

		if(BOOLSETTING(COMPRESS_TRANSFERS) && aConn->isSet(UserConnection::FLAG_SUPPORTS_GETZBLOCK) && d->getSize() != -1 ) {
			// This one, we'll download with a zblock download instead...
			d->setFlag(Download::FLAG_ZDOWNLOAD);
			aConn->getZBlock(d->getSource(), d->getPos(), d->getBytesLeft(), d->isSet(Download::FLAG_UTF8));
		} else if(aConn->isSet(UserConnection::FLAG_SUPPORTS_XML_BZLIST) && d->isSet(Download::FLAG_UTF8)) {
with

Code: Select all

		if(BOOLSETTING(COMPRESS_TRANSFERS) && aConn->isSet(UserConnection::FLAG_SUPPORTS_GETZBLOCK) && d->getSize() != -1  && d->isSet(Download::FLAG_USER_LIST) == false) {
			// This one, we'll download with a zblock download instead...
			d->setFlag(Download::FLAG_ZDOWNLOAD);
			aConn->getZBlock(d->getSource(), d->getPos(), d->getBytesLeft(), d->isSet(Download::FLAG_UTF8));
		} else if(aConn->isSet(UserConnection::FLAG_SUPPORTS_XML_BZLIST) && d->isSet(Download::FLAG_UTF8) && d->isSet(Download::FLAG_USER_LIST) == false) {

adrian_007
Posts: 32
Joined: 2006-03-06 10:54
Location: Poland

Post by adrian_007 » 2006-09-24 14:15

works fine, thx PPK :)

Locked