Gnutella Forums  

Go Back   Gnutella Forums > Gnutella News and Gnutelliums Forums > General Gnutella Development Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Gnutella Development Discussion For general discussion about Gnutella development.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old June 22nd, 2002
Unregistered
Guest
 
Posts: n/a
Default 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?
Reply With Quote
  #2 (permalink)  
Old June 22nd, 2002
Morgwen's Avatar
lazy dragon - retired mod
 
Join Date: October 14th, 2001
Location: Germany
Posts: 2,927
Morgwen is flying high
Default

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

Last edited by Morgwen; June 22nd, 2002 at 04:39 PM.
Reply With Quote
  #3 (permalink)  
Old June 22nd, 2002
Unregistered
Guest
 
Posts: n/a
Default

Do you know where I might be able to find the 0.6 specs?
Reply With Quote
  #4 (permalink)  
Old June 22nd, 2002
Unregistered
Guest
 
Posts: n/a
Default

see the FAQ
Reply With Quote
  #5 (permalink)  
Old June 22nd, 2002
Morgwen's Avatar
lazy dragon - retired mod
 
Join Date: October 14th, 2001
Location: Germany
Posts: 2,927
Morgwen is flying high
Default

Here you will find all necessary information:

http://www.gnutellaforums.com/showth...&threadid=4638

Morgwen
Reply With Quote
  #6 (permalink)  
Old June 22nd, 2002
Unregistered
Guest
 
Posts: n/a
Default

Excellent work! That's got to be the most useful thread I've seen in a message board.
Reply With Quote
  #7 (permalink)  
Old June 22nd, 2002
Morgwen's Avatar
lazy dragon - retired mod
 
Join Date: October 14th, 2001
Location: Germany
Posts: 2,927
Morgwen is flying high
Default

I will tell this Moak.

Morgwen
Reply With Quote
  #8 (permalink)  
Old June 23rd, 2002
Devotee
 
Join Date: January 18th, 2002
Posts: 22
James Connolly is flying high
Default

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).
Reply With Quote
  #9 (permalink)  
Old June 23rd, 2002
Unregistered
Guest
 
Posts: n/a
Default

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?
Reply With Quote
  #10 (permalink)  
Old June 24th, 2002
Unregistered
Guest
 
Posts: n/a
Default

And more problems...

I can send a ping and get a pong, but immediately after the pong I get disconnected...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 01:06 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.