• Welcome to Valhalla Legends Archive.
 

Packet 0x00 (SID_NULL)

Started by soccerist, July 20, 2004, 07:11 AM

Previous topic - Next topic

soccerist

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.

iago

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.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


hismajesty

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.

tA-Kane

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.
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com

Blaze

How can you kill a null packet? its almost dead as it is...
Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

Spht

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?

tA-Kane

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.
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com