![]() |
|
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 |
| |||
![]() hi i'm writing a small gnutella client, but up till now can't even establish a connection, because the other peer always responds with Code: GNUTELLA/0.6 500 Invalid Handshake Code: GNUTELLA CONNECT/0.6\r\n User-Agent: test/0.1\r\n \r\n Code: String msg = ""; msg += "GNUTELLA CONNECT/0.6\r\n"; msg += "User-Agent: test/0.1\r\n"; msg += "\r\n"; outputStream.write(msg.getBytes(), 0, msg.getBytes().length); outputStream.flush(); please help, thanks |
| ||||
![]() Hi, Ich kann selbst noch nicht programmieren, sondern habe mich immer auf der theoretischen Ebene mit Gnutella beschäftigt. Trotzdem habe ich mich gerade etwas im Phex Quellcode umgesehen. Die Header, die du schickst sind extrem minimal, sollten aber eigentlich funktionieren. Hast du dein Programm an einem lokalen Programm getestet, das Ultrapeer fähigkeiten aktiviert hat? Ansonsten kann es nämlich leicht sein, dass du an ein Blatt (Leaf-Node) geraten bist, das keinerlei eigehende Verbindungen annimmt. Zur Sicherheit solltest du es mit Phex versuchen, und in den Prefs unter Verbindungen peer-verbindungen aktivieren. Phex schickt außerdem noch den Header LISTEN_IP mit. Schreib mir bitte, wie es weiterging! Was planst du, mit dem Programm zu machen? Wieso nimmst du nicht eifnach Code von Phex?
__________________ ![]() -> 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. |
| |||
![]() Phex should accept this handshake if there are peer slots open. Other clients will most likely reject it since Phex is one of the rare clients left that still support peer connections and handshakes without the ultrapeer headers. I think we even support incoming 0.4 handshakes... Though the peer and 0.4 handshake is not tested well, since its not used anymore. It could be that your connection is not very reliable. BTW: Phex has no 500 return code. Gregor |
![]() |
| |
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Invalid Handshake | HuddledFiber6 | General Discussion | 3 | November 18th, 2005 03:56 AM |
Disconnected after handshake | edo | General Gnutella Development Discussion | 1 | September 5th, 2003 08:39 PM |
Handshake | faisal | General Gnutella Development Discussion | 9 | September 13th, 2002 07:03 PM |
Suggestion to v0.6 Handshake | Moak | LimeWire Beta Archives | 5 | January 27th, 2002 04:26 AM |
Why do we need handshake? | Ivex | General Gnutella Development Discussion | 5 | January 16th, 2002 07:53 AM |