PtokaX forum

Stuff => Offtopic => Topic started by: dadaniel on 19 April, 2004, 13:45:36

Title: DC++ Version with option to disable file hashing???
Post by: dadaniel on 19 April, 2004, 13:45:36
Which DC Version has a build in option to disable hashing? --->because we use it at lan and it hashes almost an hour!  :D
Title:
Post by: AlwaysConnected on 19 April, 2004, 14:17:43
all dc++ below 0.400
:)
Title:
Post by: dadaniel on 19 April, 2004, 14:22:18
and what about mods? --->we MUST use speed-limiting(says our network-admin) ?(

--->Oh, I've found out that no mod supports this feature anymore! 8o  8o

What should I do? I don't want to use an old version! :(
Title:
Post by: NotRabidWombat on 19 April, 2004, 15:10:15
BCDC++ or use NetLimiter

Your network admin sounds like a nazi.

-NotRabidWombat
Title:
Post by: dadaniel on 19 April, 2004, 16:14:54
There's also no option to disable file-hashing in BCDC++!! ;(
Title:
Post by: NotRabidWombat on 19 April, 2004, 18:11:36
Oh sorry. I did not know that BCDC++ removed the option from their advanced menu. Well, I'm currently working on a modded version of BCDC++ to support additional lua script options. You would have to wait a while for me to finish that and then work on this option. However, I _am_ interested in this option because I also run a LAN hub :-D

If someone else would like to make the change get the bcdc++ source.

File: DCPlusPlus.cpp
Line: 121
"HashManager::getInstance()->startup();"
You would want to add an if condition controlled by the Settings dialog.

Same with Line: 133
"HashManager::getInstance()->shutdown();"
I wonder if shutdown ensures there was a startup().

Also
File: ShareManager.cpp
Line: 276
"TTHValue* root = HashManager::getInstance()->getTTH(aName + PATH_SEPARATOR + name, size, File::convertTime(&data.ftLastWriteTime));"
This is getting more complex because root is added into what appears to be information for the filelist. You may have to look into the inner workings behind creating the filelist and detecting whether the filelist contains TTH.

*EDIT*
I forgot.
File: WinUtil.cpp
Line: 571
"HashManager::getInstance()->rebuild();"
This one is easy though because this is from the command "/rebuild" and can be a simple if clause.

-NotRabidWombat