![]() |
|
|||||||
| Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Search | Today's Posts | Mark Forums Read |
| General Gnutella Development Discussion For general discussion about Gnutella development. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
As you know, packets have a payload descriptor so you can check to see what kind of package we are dealing with. So when I encounter a packet with an invalid descriptor (other than 0x00, 0x01, 0x80, 0x81 or 0x40) I assume for one reason or another the stream lost sync and I drop the connection. However, This occurs quite a lot, and I don't actually have the feeling that I'm loosing sync, but I think it are custom codes from other clients.
Could this be? If so, can I get a list of these custom codes (the known ones) somewhere so I can ignore the packet if it's one of these, and drop the connection if it is still another. |
|
#2
|
|||
|
|||
|
The only ones I believe might be used are 0x02 and 0x03, but those were only proposed and shouldn't actually be used. But when these "invalid" messages appear, what I would do is assume the payload is correct, read it but then drop it from further distribution. I'd also keep a counter for the occurence - if it happens too often within a short timespan, I'd consider the other client to be faulty and drop the connection.
|
|
#3
|
|||
|
|||
|
30 is used for query routing
|
|
#4
|
|||
|
|||
|
Thanx, I think I'll go for the first one, to ust ignore a number of successive invalid packets, before dropping the connection.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with codes please | poppy06 | Open Discussion topics | 4 | April 17th, 2005 10:04 AM |
| Problem identifying Descriptor IDs | Paradog | General Gnutella Development Discussion | 5 | July 25th, 2002 03:04 PM |
| Who give me a Descriptor ID? | Cerebro | General Gnutella Development Discussion | 7 | April 9th, 2002 04:38 AM |
| Hostcache returns Query with 88 bytes payload? | Pferdo | General Gnutella Development Discussion | 1 | April 2nd, 2002 12:58 AM |
| Descriptor Help | Ahri | General Gnutella / Gnutella Network Discussion | 7 | August 23rd, 2001 08:13 AM |