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 April 3rd, 2002
Disciple
 
Join Date: April 3rd, 2002
Posts: 10
Cerebro is flying high
Question Who give me a Descriptor ID?

Each servent must to have a Descriptor ID, right? But how can I get it?

Thanks.
Reply With Quote
  #2 (permalink)  
Old April 3rd, 2002
White Magician
 
Join Date: November 20th, 2001
Location: Hannover, Germany
Posts: 25
guido is flying high
Default

Use a random number generator. If you are using Linux, just read 16 bytes from /dev/urandom.
There are some plans, however, to make this GUID tag more descriptive.
See http://rfc-gnutella.sourceforge.net/...ID-Tagging.htm
for details.

Guido
Reply With Quote
  #3 (permalink)  
Old April 3rd, 2002
Disciple
 
Join Date: April 3rd, 2002
Posts: 10
Cerebro is flying high
Thumbs up

Thank you, Guido
Reply With Quote
  #4 (permalink)  
Old April 4th, 2002
Devotee
 
Join Date: March 29th, 2002
Location: Germany
Posts: 21
Pferdo is flying high
Default interested in VB-Code?

hi, here's "my" code for this "problem"... should even be understood by C programmers


Public Function GetRandomGUID() As String

Dim intIndex As Integer

Randomize Timer
For intIndex = 1 To 16
GetRandomGUID = GetRandomGUID + Chr$(CInt(Rnd * 255))
Next
End Function

CU
Reply With Quote
  #5 (permalink)  
Old April 5th, 2002
Unregistered
Guest
 
Posts: n/a
Default

search getguid in the msdn there's a source code
Reply With Quote
  #6 (permalink)  
Old April 5th, 2002
Gnutella Veteran
 
Join Date: March 14th, 2002
Location: Canada
Posts: 121
Smilin' Joe Fission is flying high
Default

Specifically, there is a Windows API function called "CoCreateGUID".

Whether you use the Windows API function or generate a string of random numbers, either way is just as easy.
Reply With Quote
  #7 (permalink)  
Old April 9th, 2002
TorKlingberg
Guest
 
Posts: n/a
Default

Message ID: A 16-byte string uniquely identifying the message
on the network.

Servants SHOULD store all 1's (0xff) in byte 8 of the
GUID. (Bytes are numbered 0-15, inclusive.) This
serves to tag the GUID as being from a modern servant.

Servants SHOULD initially store all 0's in byte 15 of
the GUID. This is reserved for future use.

The other bytes SHOULD have random values.


Don't mess it up with the Servant identifier in Query Hit and Push messages.

Servant Identifier. A 16-byte string uniquely identifying the responding servant on the network. This SHOULD be constant for all Query Hit messages emitted by a servant and is typically some function of the servant's network address. The servant Identifier is mainly used for routing the Push Message
Reply With Quote
  #8 (permalink)  
Old April 9th, 2002
Devotee
 
Join Date: March 29th, 2002
Location: Germany
Posts: 21
Pferdo is flying high
Thumbs down ... limewire

hi,
this is just a limewire proposal and as far as i know it isn't used beacause all these things can be done with the 0.6 handshake.


here some lines (0.6 specification):
.......
Lime Wire LLC had proposed using the GUIDs of initial ping requests as
a form of protocol versioning. For example, the last byte of the GUID
of the first message by a client would be 0 if the client spoke the
"Gnutella 0.5" protocol, 1 if the client spoke the "Gnutella 0.6"
protocol, etc. While this scheme is backwards- compatible, it is
imperfect. First, it does not provide ways for clients to support
different combinations of protocol extensions. If, for example,
clients at the "0.6" level were to support QRP and pong-caching, a
servent would be required to implement both. Second, this scheme
places a burden on the servent implementer. For example, a servent
trying to accept only connections with QRP support must put new
connections on "probation" until it has received the initial ping.
.......

CU
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
I give up caloundratattoo Chat - Open Topics - The Lounge 4 October 14th, 2005 04:01 PM
give me this gnutotella XoloX Feature Request 5 January 14th, 2003 01:31 PM
Problem identifying Descriptor IDs Paradog General Gnutella Development Discussion 5 July 25th, 2002 03:04 PM
Payload descriptor codes Unregistered General Gnutella Development Discussion 3 May 26th, 2002 11:13 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 10:36 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.