|
Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
General Gnutella Development Discussion For general discussion about Gnutella development. |
| LinkBack | Thread Tools | Display Modes |
| |||
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? |
| ||||
Here you will find all necessary information: http://www.gnutellaforums.com/showth...&threadid=4638 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? |
| |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
gnutella protocol | Unregistered | General Gnutella / Gnutella Network Discussion | 2 | May 19th, 2002 11:23 AM |
Help On Gnutella Protocol | Unregistered | General Gnutella Development Discussion | 17 | January 5th, 2002 05:15 PM |
a gnutella protocol question | feliz | General Gnutella Development Discussion | 4 | November 21st, 2001 09:51 AM |
gnutella protocol v0.6? | chuckles42 | Gnucleus (Windows) | 0 | September 15th, 2001 09:11 AM |
Gnutella protocol to sloppy? | Tiago s1x | General Gnutella Development Discussion | 3 | August 6th, 2001 05:20 PM |