• Welcome to Valhalla Legends Archive.
 

Should I make multiple Hashes?

Started by Sorc.Polgara, July 15, 2005, 08:07 PM

Previous topic - Next topic

Sorc.Polgara

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.

Tass

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.

Hdx

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)~-~

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

Kp

Just remember to pass 0 for the third parameter to CreateFile when you open the files.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Lenny

Would it be necessary to prohibit read access to a file while another handle is still open?
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

MyndFyre

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 and I just want to call them "Bluetard"), when you're just reading the files.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Eric

If both bots are on the same server, you could simply cache the results from CheckRevision() and use them for the second bot.