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 Today's Posts

General Gnutella Development Discussion For general discussion about Gnutella development.


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old May 28th, 2002
Apprentice
 
Join Date: May 27th, 2002
Posts: 8
loStHead is flying high
Default Sockets close

Hi, Im kind of new to this and I have a problem...
Im using asynchronous non-blocking sockets on my Gnutella, and just after I make a successfull connection, I send a ping, receive pongs, and then the socket disconnects. Im using plain send() and recv() calls and a main poll cycle which constantly checks for incoming packets. Im not sure if the problem is that Im getting out of sync or that I should send pings more often to keep the connection alive. Im also getting lots of query, pongs, pings, etc which I (guess) successfully broadcast. Just after that, the socket resets the connection.

eg. a poll tells me I have incoming data to handle, and then my receive function receives 0 bytes. Why's that?

Thanks
Reply With Quote
 


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
Sockets GaryM Support: General 1 August 27th, 2002 01:04 PM
Question on Gnucleus sockets, STL Kaom Gnucleus (Windows) 2 August 20th, 2002 12:08 PM
Sockets, C and gnutella patricio General Gnutella Development Discussion 5 May 31st, 2002 05:20 AM
Should LimeWire close when I close the terminal window? Unregistered General Linux Support 4 September 19th, 2001 07:37 PM
Sockets accumulating Unregistered Connection Problems 0 September 14th, 2001 08:14 PM


All times are GMT -7. The time now is 10:34 PM.


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

Copyright © 2020 Gnutella Forums.
All Rights Reserved.