Matthew Lye wrote:
> On 2-Jul-08, at 5:15 AM, Raphael Manfredi wrote:
> > As Christian already said, the GUID is a pure random number which is  
> > not
> > encoding any IP address within it.
> 
> If I understand correctly now...
> 
> (a)  MUID implies GUID.  A GUID is just any old 16-byte string that  
> happens to be guaranteed to be unique.  Got it.
> [Probably not the most efficient way to learn about atoms.]

Yes, you can think of a GUID as a primitive data type or structure
which is used either as ServentID or MessageUID.
 
> (b) the following is actually speaking exclusively of MUIDs and should  
> perhaps be clearer:
 
> from guid.c:426-434:
> > /**
> > * Extract the IP and port number from the GUID of queries marked for  
> > OOB
> > * query hit delivery.
> > *
> > * Bytes 0 to 3 of the guid are the 4 octet bytes of the IP address.
> > * Bytes 13 and 14 are the little endian representation of the port.
> > */
> > void
> > guid_oob_get_addr_port(const gchar *guid, host_addr_t *addr, guint16  
> > *port)

Yes, you can replace GUID with MUID here. See also how this function
is used. 
 
> (c)  The GUID which I *can* reliably use when calling  
> search_gui_new_browse_host(...) to solicit a response through a  
> firewall in a browse request - and hence hadn't been thinking of as  
> random - is generated uniquely the first time a client ever runs as a  
> purely random number and subsequently shouldn't change, ideally, but  
> it can.

In newer version of gtk-gnutella a new ServentID is generated on each
startup. In other software it's probably persistent after the
initial installation.

> The span of its duration exceeds the span of its utility by  
> several magnitudes, giving it an unwonted salience.  Analogous in some  
> ways to the calcification of dynamic IP addresses.
 
> ...yes?

The average uptime of a peer is supposedly less than 2 hours. I don't
think any software tries to establish persistent ultrapeer connections.
So the peer might be long offline or simply not reachable through its
previous ultrapeers if you want to browse it a couple of minutes or
hours after receiving query hits from it.

-- 
Christian

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
gtk-gnutella-devel mailing list
gtk-gnutella-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to