![]() |
|
Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
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 |
| ||||
![]() It seems you try a friendly shutdown, while Max from Mutella loves it the hard way to disconnect. About friendly disconnect, shouldn't it be: while(m_bDataSending && !m_bForceDisconnect); //wait until send buffer cleared AsyncSelect(0); Shutdown(1); //perform a friendly TCP shutdowm while(Receive(m_aBuffer, sizeof(m_aBuffer))>0 && !m_bForceDisconnect); CAsyncSocket::Close() Greets, Moak PS: Okay this doesn't work too. Since there is no possibility to get interrupted by a class method that sets m_bForceDisconnect. Perhaps it's a conceptional design weakness in CAsyncSocket? Last edited by Moak; February 20th, 2002 at 05:38 AM. |
| |
![]() | ||||
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 |