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.

peng May 7th, 2003 11:28 PM

Quote:

Originally posted by der_schreckliche_sven
It's all documented in the files section at http://www.yahoogroups.com/groups/the_gdf and at rfc-gnutella.sf.net
I'm a little bit confused: HTTP use port 80 and Gnutella 6346, how can they communicate? Even if I can send "Get /HTTP/1.1" to other peers, they're not servers, how can they response with the file name list? If they can, what is the HTTP request for the file name list? Thanks.

der_schreckliche_sven May 8th, 2003 02:08 AM

If you read the HTTP protocol you will see, that HTTP does not have a standard port.

peng May 13th, 2003 05:31 PM

Quote:

Originally posted by der_schreckliche_sven
If you read the HTTP protocol you will see, that HTTP does not have a standard port.
If I want to set up a HTTP connection, how do I know the file path on the other computer?

xp445 May 13th, 2003 11:36 PM

You always have to know the URL in advance, before making the HTTP connection. How you learned of that URL does not really matter and is not covered by the HTTP specs.

peng May 14th, 2003 09:12 AM

Quote:

Originally posted by xp445
You always have to know the URL in advance, before making the HTTP connection. How you learned of that URL does not really matter and is not covered by the HTTP specs.
Can anybody tell me how the "Browse Host" function in many P2P software finds out the URL of the other peers? Thanks.

gbildson May 17th, 2003 09:44 PM

Read the GDF protocol documents:
http://groups.yahoo.com/group/the_gdf/files/

Or read the code:
http://www.limewire.org

Thanks
-greg


All times are GMT -7. The time now is 07:47 PM.

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.