|
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 |
| |||
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 |
| |||
thanks, maybe Im a bit confused about how are asynchronous sockets implemented. I've read everything I've found about gnutella, and I really cant figure out how this is actually done. So I decided to do it my way...dunno if what Im doing has a name. Sorry about reinventing the wheel, I really have to. So is what Im doing fully wrong, Im headin the wrong way? |
| |||
You really should use 0.6 handshaking. Its not much more difficult and everyone else is using it. See http://cvs.sourceforge.net/cgi-bin/v...ella/Draft.txt Click the first "(view)" I don't have a good answear to your question. I suppose you do aswear any pings you receive? /Tor |
| |||
Here you can find s.th. about network programming. Maybe this will help you. http://www.ecst.csuchico.edu/~beej/guide/net/html/ |
| |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sockets | GaryM | Support: General | 1 | August 27th, 2002 02:04 PM |
Question on Gnucleus sockets, STL | Kaom | Gnucleus (Windows) | 2 | August 20th, 2002 01:08 PM |
Sockets, C and gnutella | patricio | General Gnutella Development Discussion | 5 | May 31st, 2002 06:20 AM |
Should LimeWire close when I close the terminal window? | Unregistered | General Linux Support | 4 | September 19th, 2001 08:37 PM |
Sockets accumulating | Unregistered | Connection Problems | 0 | September 14th, 2001 09:14 PM |