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 Search Today's Posts Mark Forums Read

General Gnutella Development Discussion For general discussion about Gnutella development.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old September 30th, 2009
Apprentice
 
Join Date: September 18th, 2009
Posts: 6
graytornWW is flying high
Default Was schicke ich denn nun.....

Uuups, I wrote this mail in german language. Sorry! See english translation below
------------------------------------------------------------

Hallo,

zunächst schon mal vielen Dank für eure bisherigen Infos, die haben schon ein wenig geholfen.

Das eigentliche binäre Gnutella-Protokoll kriege ich - hoffe ich - gut in den Griff. Probleme bereitet mir die Verbindungsaufnahme zu einem anderen Servent.

Ausgehend von einer gültigen Tcp-Verbindung zu einem Servent möchte ich mich nun mit diesem verbinden. Dazu fand ich in einem Buch folgende Informationen, was ich schicken muß:

Quote:
GNUTELLA CONNECT/0.6
Listen-IP: 10.11.33.2:4222
Remote-IP: 44.66.144.63:2511
User-Agent: LimeWire/3.3.5
GGEP: 0.5 X-Ultrapeer: False
Accept-Encoding: deflate
Vendor-Message: 0.1
X-Ultrapeer-Query-Routing: 0.1
Pong-Caching: 0.1
Natürlich sind die Werte nur Beispiele.

Was genau schicke ich jetzt zu dem Servent?

z.B. einen String der Form
"CONNECT/0610.11.33.2:4222........" (ist wahrscheinlich Blödsinn)
oder ein binäres Datenpaket wenn ja in welchem Format....

Vielen Dank das ihr einem P2P-Neuling helft.
Wolli

------------------------------------------------------------
english Version:

Hello,

thanks to all for your information, they really helps.

I believe I will not have problems with the binary gnutella protocol. But I have serious problems to connect to another servant.

Assuming I have a valid TCP-Connection to a servant I want to connect to it. I found the follwing information in a book:

Quote:
GNUTELLA CONNECT/0.6
Listen-IP: 10.11.33.2:4222
Remote-IP: 44.66.144.63:2511
User-Agent: LimeWire/3.3.5
GGEP: 0.5 X-Ultrapeer: False
Accept-Encoding: deflate
Vendor-Message: 0.1
X-Ultrapeer-Query-Routing: 0.1
Pong-Caching: 0.1
Of course the IP-adresses etc are sample values.

What excactly have I to send to the Servent?

a formatted string like:
"CONNECT/0610.11.33.2:4222........" (I think it's nonsense)
or a binary package, but if so what's the format of this....???

Thanks again for your assistance to a P2P newcomer...
Wolli

Last edited by graytornWW; September 30th, 2009 at 02:13 AM.
Reply With Quote
  #2 (permalink)  
Old September 30th, 2009
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

Quote:
Originally Posted by graytornWW View Post
Was genau schicke ich jetzt zu dem Servent?

z.B. einen String der Form
"CONNECT/0610.11.33.2:4222........" (ist wahrscheinlich Blödsinn)
oder ein binäres Datenpaket wenn ja in welchem Format....
Die Verbindungsanfrage wird als HTTP Header geschickt - effektiv also plain text.

Falls du http wirklich selbst implementieren willst (brauchst du auch für den Download später noch, daher bietet sich eine Bibliothek an): RFC 2616 (rfc2616) - Hypertext Transfer Protocol -- HTTP/1.1

Tipp: installier' dir ein Gnutella-Programm wie Phex oder gtk-gnutella und sniff die Verbindung. Oder schau einfach, was das andere Programm schickt, wenn es sich mit dir verbinden will.

- Phex - Home
- gtk-gnutella - The Graphical Unix Gnutella Client

Viele Erfolg!

PS: Ein Gnutella-Programm zu schreiben bedeutet mehrere Personen-Jahre Arbeit, daher könnte es deutlich effizienter sein, einfach bei einem etablierten Programm mitzumachen, nachdem du die Grundlagen beherrscht.

PPS: Damn, this should have been in english... sorry to all english speaking members
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote
Reply

Thread Tools
Display Modes

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



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


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.