Ok, so I'm going to have like 2 bots try and connect simultaneously and they are both going to be locally hashing. Since there is a chance that they will be hashing the files at the same thing, should I make two separate folders for hashes?
I'm thinking that there might be some conflict when each bot is trying to hash using the same files...
I'm in the process of thinking of all the possible mishaps that might occur in advanced.
You can use hashes at the same time.. with one bot but I'd suggest making a object array of your winsocks and other things.
I haave never had any problems with this. I run, JBLS, TestBNCS, quite a few bots, all running off the same hashes (E:\Hashes\) You shouldnt get any errors, your just reading file, not writing to them or anything.
~-~(HDX)~-~
Just remember to pass 0 for the third parameter to CreateFile when you open the files.
Would it be necessary to prohibit read access to a file while another handle is still open?
Quote from: Lenny on July 15, 2005, 11:17 PM
Would it be necessary to prohibit read access to a file while another handle is still open?
Only if the other file handle is open for write access. You can cause synchronization issues if the file is being written-to.
I guess it's not a big deal in hashing scenarios (btw, for the record, FILES ARE NOT HASHES. HASHES ARE VALUES CALCULATED BY PROCESSING THE FILES IN A PREDETERMINED MANNER. It's like people are really Caboose (http://en.wikipedia.org/wiki/Red_Vs_Blue#Private_Michael_J._Caboose_.28Blue_Armor.29) and I just want to call them "Bluetard"), when you're just reading the files.
If both bots are on the same server, you could simply cache the results from CheckRevision() and use them for the second bot.