|
Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
General Gnutella / Gnutella Network Discussion For general discussion about Gnutella and the Gnutella network. For discussion about a specific Gnutella client program, please post in one of the client forums above. |
| LinkBack | Thread Tools | Display Modes |
| |||
Problems sending MSGs(ping, pong, query...) over gnutella network I'm developing an open source gnutella servent in Visual Basic, i've followed the protocol specifications yet when i send a pong to a server it disconnects my socket connection or an error (in the socket) is triggered. Also, when i connect to a main servent (like gnutella.hostscache.com) they send me lot's of msgs of uknown type, like 24 (one of the most common), some of these msgs have a huge payload length (like 1401), what's that stuff?. Could someone help me? The following is my code for sending a Ping and a Pong: Function Ping(Optional guid As String) As String 'Utils: Sends a Ping Message ' '------- If guid = "" Then guid = cx(GetGUID) '------- Ping = guid & Chr(0) & Chr(5) & String(5, Chr(0)) End Function Function Pong(Optional Address As String, Optional Port As Integer, Optional guid As String, Optional FileSpace As Double, Optional FileNum As Double, Optional TTL As Byte, Optional Hop As Byte) As String Dim Body As String '------- If Address = "" Then Address = MyAddress If Port = 0 Then Port = MyPort If guid = "" Then guid = cx(GetGUID) If FileSpace = 0 Then FileSpace = MySize If FileNum = 0 Then FileNum = MyFiles If TTL = 0 Then TTL = 5 '------- Body = IncStr(EncNumber(CDbl(Port)), 2) & EncAddress(MyAddress) & IncStr(EncNumber(FileNum), 4) & IncStr(EncNumber(FileSpace), 4) Pong = guid & Chr(1) & Chr(TTL) & Chr(Hop) & IncStr(EncNumber(Len(Body)), 4) & Body End Function |
| |||
The developers at the Gnutella Developer Forum ( http://groups.yahoo.com/group/the_gdf ) would probably be able to help you with that problem. |
| |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sending Ping Requests | sriram | General Gnutella Development Discussion | 0 | January 25th, 2003 08:20 PM |
Sending Ping Requests | Sriram | Open Discussion topics | 0 | January 24th, 2003 05:03 PM |
Ping & Pong? What for? | JackDCLee | General Gnutella Development Discussion | 5 | March 31st, 2002 01:59 AM |
Possible replacement for ping/pong | guido | General Gnutella Development Discussion | 6 | November 28th, 2001 08:20 AM |
Problems sending MSGs(ping, pong, query...) over gnutella network | Tiago s1x | General Gnutella / Gnutella Network Discussion | 1 | August 4th, 2001 05:17 AM |