Gnutella Forums  

Go Back   Gnutella Forums > Gnutella News and Gnutelliums Forums > General Gnutella Development Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Gnutella Development Discussion For general discussion about Gnutella development.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old May 26th, 2002
Unregistered
Guest
 
Posts: n/a
Default Payload descriptor codes

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.
Reply With Quote
  #2 (permalink)  
Old May 26th, 2002
Connoisseur
 
Join Date: August 9th, 2001
Location: Philadelphia, PA, USA
Posts: 358
cultiv8r is flying high
Default

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.
Reply With Quote
  #3 (permalink)  
Old May 26th, 2002
Novicius
 
Join Date: May 12th, 2002
Posts: 4
Fisman is flying high
Default also

30 is used for query routing
Reply With Quote
  #4 (permalink)  
Old May 26th, 2002
Disciple
 
Join Date: May 26th, 2002
Posts: 13
Cakkie is flying high
Default

Thanx, I think I'll go for the first one, to ust ignore a number of successive invalid packets, before dropping the connection.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 1st, 2002 11:58 PM
Descriptor Help Ahri General Gnutella / Gnutella Network Discussion 7 August 23rd, 2001 08:13 AM


All times are GMT -7. The time now is 02:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.