Gnutella Forums  

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

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.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old August 4th, 2001
Novicius
 
Join Date: August 3rd, 2001
Location: Azores - Portugal
Posts: 3
Tiago s1x is flying high
Default 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
Reply With Quote
  #2 (permalink)  
Old August 4th, 2001
Administrator
 
Join Date: May 28th, 2000
Posts: 894
CycloCide is flying high
Default

The developers at the Gnutella Developer Forum ( http://groups.yahoo.com/group/the_gdf ) would probably be able to help you with that problem.
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
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


All times are GMT -7. The time now is 06:03 AM.


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.