Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: soccerist on July 20, 2004, 07:11 AM

Title: Packet 0x00 (SID_NULL)
Post by: soccerist on July 20, 2004, 07:11 AM
After a fairly long period of inactivity on the connection, I send a SID_NULL packet, (4 bytes).  The server doesn't seem to like that.  I get rc == 0 for the recv numerous times as it poops out.  Any ideas?

I am using C++ ( g++ compiler in Linux ).  

Thanks.
Title: Re:Packet 0x00 (SID_NULL)
Post by: iago on July 20, 2004, 07:23 AM
The server shouldn't mind, if you aren't doing something stupid while sending it.  The real game client sends SID_NULL every 60 seconds or so, iirc.
Title: Re:Packet 0x00 (SID_NULL)
Post by: hismajesty on July 20, 2004, 08:30 AM
SID_NULL can be sent without penalty at any interval, or not at all - it's only required in games and is sent every sixty seconds.
Title: Re:Packet 0x00 (SID_NULL)
Post by: tA-Kane on July 20, 2004, 11:09 AM
Try private messaging yourself after you send 0x00; this should cause Battle.net to at least echo your message. If you still receive no data, then you know that your 0x00 packet send is likely damaged (or perhaps some other packet being sent is damaged, and you don't notice it until you send 0x00?), and Battle.net is killing your connection because of that.
Title: Re:Packet 0x00 (SID_NULL)
Post by: Blaze on July 20, 2004, 12:49 PM
How can you kill a null packet? its almost dead as it is...
Title: Re:Packet 0x00 (SID_NULL)
Post by: Spht on July 20, 2004, 01:00 PM
Quote from: Kk)Blaze(kK on July 20, 2004, 12:49 PM
How can you kill a null packet? its almost dead as it is...

TTL=0?
Title: Re:Packet 0x00 (SID_NULL)
Post by: tA-Kane on July 22, 2004, 12:39 PM
Quote from: tA-Kane on July 20, 2004, 11:09 AMBattle.net is killing your connection
Quote from: Kk)Blaze(kK on July 20, 2004, 12:49 PMHow can you kill a null packet?
I should dig up some of my old school grade cards, scan them into the computer, and photochop in "Paying attention: F, needs improvement"

Unfortunately, I don't have a scanner nor am I good with photochopping.  :(

Oh well.