![]() |
Gnutella protocol trouble I'm having some trouble trying to get my client to connect to the network. I am able to get as far as sending "GNUTELLA CONNECT/0.4\n\n" but after that I get a messed up query and get disconnected. I can't send anything after the connect line or I get dropped even faster! Am I missing something? |
I am no developer but it seems that you are using the 0.4 protocol, some clients don´t support this protocol anymore (bearshare for example), you should upgrade to 0.6... If I am wrong please correct me but don´t beat me! ;) Morgwen |
Do you know where I might be able to find the 0.6 specs? |
see the FAQ |
Here you will find all necessary information: http://www.gnutellaforums.com/showth...&threadid=4638 Morgwen |
Excellent work! That's got to be the most useful thread I've seen in a message board. |
I will tell this Moak. :) Morgwen |
Well the procedure is - GNUTELLA CONNECT/0.4\n\n you should get back GNUTELLA OK At this point you are connected. Usually I send a ping right after I receive the "GNUTELLA OK" message. After that you will be reading (and usually writing) data from the socket/connection. Initially, I just read all data in and printed it (however you want - hex, decimal, ascii). Later on, I wrote functions that would read and parse this data. After you send the ping you may receive pongs, queries, and sometimes misdirected or bad packers (misdirected queryhits and pushes, which you shouldn't get since you hadn't sent or forwarded anything aside from a ping, or possibly bad packets). |
ugh this is frustrating. I send: GNUTELLA CONNECT/0.6\r\n User-Agent: Angel\r\n\r\n I receive: GNUTELLA/0.6 200 OK\r\n User-Agent: BearShare 2.4.4\r\n Pong-Caching: 0.1\r\n Hops-Flow: 1.0\r\n Remote-IP: 64.103.153.29\r\n\r\n I send: GNUTELLA/0.6 200 OK\r\n\r\n ----------------- I receive a query: TTL - 1; Hops - 0 Payload: ??Ì*¼ç×¾ä÷ÓšÁµÆÞ÷ƦÂÓÇû?©å¶—‹Œâ¤§?‚ï¥Ç—ˆÔÆòˤÁÃÙåÇ ôòù›¿ÐÒ§„ùØþͱ°È?ÿùÑ…€ÛµÞ*႒ѯɌ¨†Ú±õ ----------------- Then I get disconnected First of all, what's wrong with that query? I always get a messed up query like that on connection. Second of all, why do I get disconnected for inactivity? |
And more problems... I can send a ping and get a pong, but immediately after the pong I get disconnected... |
All times are GMT -7. The time now is 05:01 AM. |
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.