Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Open Discussion topics (https://www.gnutellaforums.com/open-discussion-topics/)
-   -   query question (https://www.gnutellaforums.com/open-discussion-topics/20226-query-question.html)

peng May 6th, 2003 09:59 PM

query question
 
1. if my computer get a query message, how can I know where it comes from? is this possible? it doesn't show in the query definition in the protocol.
2. How can I know the file names the other peers are sharing? The pong message only gives how many files are sharing, but not the names.

Thanks a lot

der_schreckliche_sven May 6th, 2003 11:32 PM

You don't know where it comes from, you only know which ultrapeer transmitted you the query, - and that's where to send the queryReply.

peng May 7th, 2003 10:52 AM

How about the second Q? how to know that?

der_schreckliche_sven May 7th, 2003 12:51 PM

All queries have unique GUIDs so you can associate queryHits with the corresponding queries. In addition all clients keep routing-tables mapping the GUIDs to the connections that sent the messages.

peng May 7th, 2003 01:03 PM

Quote:

Originally posted by der_schreckliche_sven
All queries have unique GUIDs so you can associate queryHits with the corresponding queries. In addition all clients keep routing-tables mapping the GUIDs to the connections that sent the messages.
What I mean is all the files a particular peer are sharing. I can know the # of files it is sharing from the pong, but not the names. How can I know that?

der_schreckliche_sven May 7th, 2003 01:06 PM

You can either connect via http and request a list of shared files or you can send a query for a keyword.

peng May 7th, 2003 01:07 PM

Quote:

Originally posted by der_schreckliche_sven
You can either connect via http and request a list of shared files or you can send a query for a keyword.
How to do this, do you have any referene? any code?

peng May 7th, 2003 01:10 PM

Quote:

Originally posted by der_schreckliche_sven
You don't know where it comes from, you only know which ultrapeer transmitted you the query, - and that's where to send the queryReply.
It is also possible that the query comes from its leaf? then how to distinguish if it is from a ultra or a leaf?

der_schreckliche_sven May 7th, 2003 10:04 PM

Quote:

Originally posted by peng
How to do this, do you have any referene? any code?
It's all documented in the files section at http://www.yahoogroups.com/groups/the_gdf and at rfc-gnutella.sf.net

der_schreckliche_sven May 7th, 2003 10:05 PM

Quote:

It is also possible that the query comes from its leaf? then how to distinguish if it is from a ultra or a leaf?
you can't, except if you would mark the GUID. Some vendors put certain information into the GUID but it's not documented.


All times are GMT -7. The time now is 04:09 PM.

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.