Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > GnucDNA Based Clients > Gnucleus (Windows)
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Gnucleus (Windows) For assistance for users with the Gnucleus program. Important links: Updated Gnucleus 2.2.0.0 Installer! and also Updated Connection Caches for Gnucleus!


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old February 20th, 2002
Moak's Avatar
Guest
 
Join Date: September 7th, 2001
Location: Europe
Posts: 816
Moak is flying high
Default Question on Gnucleus socket Close()

Hi swabby,

what is the purpose of your extra code in the sockets Close() method? Would it make a difference if I leave it away?
I mean this code snippet:
Code:
	// Clean receive buffer
	int iRet = 0;
	byte pBuf[4096];	
	while( (iRet = Receive(pBuf, 4096)) > 0 );

	// Close socket
	AsyncSelect(0);
Mutella (a kind of Unix reincarnation) does something different:
Code:
	AsyncSelect(FD_CLOSE);
	ShutDown(2);
Thx for some helping words, Moak
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
Question on Gnucleus sockets, STL Kaom Gnucleus (Windows) 2 August 20th, 2002 12:08 PM
Question about Socket error Unregistered Support: General 2 June 25th, 2002 03:21 PM
gnucleus.exe will now close Unregistered Gnucleus (Windows) 0 May 29th, 2002 12:26 AM
Should LimeWire close when I close the terminal window? Unregistered General Linux Support 4 September 19th, 2001 07:37 PM
socket error? Unregistered Gnotella (Windows) 1 July 15th, 2001 08:31 PM


All times are GMT -7. The time now is 10:52 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.