Thread: C++ sample???
View Single Post
  #4 (permalink)  
Old September 30th, 2009
graytornWW graytornWW is offline
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 01:13 AM.
Reply With Quote