• Welcome to Valhalla Legends Archive.
 

VB6 Developers Bot v1.0

Started by FrOzeN, January 30, 2006, 12:45 AM

Previous topic - Next topic

MyndFyre

Quote from: Yegg on January 31, 2006, 04:42 PM
Quote from: MyndFyre on January 31, 2006, 04:40 PM
Quote from: FrOzeN on January 30, 2006, 11:07 PM
It has a timer checking every 300 milliseconds if it's connected
You'll never know if it's disconnected if you never send data.  That's why many protocols have things like SID_NULL (keepalive packets) to ensure that a connection doesn't just last forever.

Just out of curiosity, can sending Battle.net the SID_NULL packet, lets say every 15 seconds, be at all dangerous?

Not generally, but IIRC it does count against you on the flood meter.
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.

Kp

Quote from: MyndFyre on January 31, 2006, 04:40 PM
Quote from: FrOzeN on January 30, 2006, 11:07 PM
It has a timer checking every 300 milliseconds if it's connected
You'll never know if it's disconnected if you never send data.  That's why many protocols have things like SID_NULL (keepalive packets) to ensure that a connection doesn't just last forever.

Not entirely true.  If you've enabled the TCP_KEEPALIVE option on the socket, you never need to (explicitly) send data.  The protocol stack will do it for you.  That said, it's not particularly aggressive about doing so, so I wouldn't rely on that behavior for anything more pruning connections on a low traffic network.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

FrOzeN

Quote from: Joe on January 31, 2006, 04:32 PM
QuoteIt has a timer checking every 300 milliseconds if it's connected

Use the gift given to you through Winsock_Close =p
I am not using the Winsock control, I'm using the API. I have to create the Winsock_Close by capturing in returned events via hooking.

Quote from: MyndFyre on January 31, 2006, 04:40 PM
Quote from: FrOzeN on January 30, 2006, 11:07 PM
It has a timer checking every 300 milliseconds if it's connected
You'll never know if it's disconnected if you never send data.  That's why many protocols have things like SID_NULL (keepalive packets) to ensure that a connection doesn't just last forever.
Sorry, ment to say ".. if data has arrived." The IsConnected() function just determines if the socket has been closed or not.
~ FrOzeN