Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Gnutella Development Discussion (https://www.gnutellaforums.com/general-gnutella-development-discussion/)
-   -   Problem identifying Descriptor IDs (https://www.gnutellaforums.com/general-gnutella-development-discussion/13845-problem-identifying-descriptor-ids.html)

Paradog July 23rd, 2002 05:46 AM

Problem identifying Descriptor IDs
 
One question regarding Descriptor IDs...
How come I get descriptor IDs like ?®ƒCÒ_åA¿1,ëÖçu| from Gnucleus & LimeWire?
When I connect my client with Shareaza I get GUIDs like B4D7F325DA144026,
the type which my client used to send too.

I dont know if the information is important but I'm creating GUIDs with CoCreateGuid
My client (Suicide) is coded in VB 6.0, I made following type.

Public Type descriptor_header
descriptor_id As String * 16 '<- The GUID
payload_descriptor As Byte
ttl As Byte
hops As Byte
payload_length As Single
End Type

Have I forgotten something? Or is the descriptor I get from Gnucleus also valid?

The desperate
Paradog

tshdos July 23rd, 2002 06:14 AM

The descriptor ids are binary so you will (should?) get characters that appear like this ?®ƒCÒ_åA¿1,ëÖçu|
As long as they are mostly unique it really doesn't matter.

Paradog July 24th, 2002 01:20 AM

You sure?
But I'm sending the Descriptor IDs as a string, and it works.
How come Shareaza sends me non-binary IDs?

tshdos July 24th, 2002 06:11 AM

Possibly it takes the GUID and converts it to a hex string then takes the first 16 chars . It really doesn't matter as long as it is unique.

Paradog July 24th, 2002 06:16 AM

Oh right,
Thanks.
Have you read the PM?

By the way, I was wondering how big the possibility is
to have to same GUIDs within a horizon.
I'm not very good at maths (Hey! I'm still in school),
but I guess its (16*36)^16 or am I wrong?

prh99 July 25th, 2002 03:04 PM

Re: Problem identifying Descriptor IDs
 
Quote:

Originally posted by Paradog
One question regarding Descriptor IDs...
How come I get descriptor IDs like ?®ƒCÒ_åA¿1,ëÖçu| from Gnucleus & LimeWire?
When I connect my client with Shareaza I get GUIDs like B4D7F325DA144026,
the type which my client used to send too.

I dont know if the information is important but I'm creating GUIDs with CoCreateGuid
My client (Suicide) is coded in VB 6.0, I made following type.

Public Type descriptor_header
descriptor_id As String * 16 '<- The GUID
payload_descriptor As Byte
ttl As Byte
hops As Byte
payload_length As Single
End Type

Have I forgotten something? Or is the descriptor I get from Gnucleus also valid?

The desperate
Paradog

Gnucleus has the same thing, and theirs are longer than 16 bytes (32 bytes instead of 16) . It looks like their converting those random characters to hex.


All times are GMT -7. The time now is 07:09 AM.

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

Copyright © 2020 Gnutella Forums.
All Rights Reserved.