[wpdev-commits] wolfpack/network listener.cpp,1.16,1.17
Brought to you by:
rip,
thiagocorrea
|
From: <thi...@pr...> - 2004-01-27 23:47:52
|
Update of /cvsroot/wpdev/wolfpack/network In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6714 Modified Files: listener.cpp Log Message: Tries to reduce Linux down time in the event of a crash with socket linger option. Index: listener.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/network/listener.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** listener.cpp 27 Jan 2004 23:46:22 -0000 1.16 --- listener.cpp 27 Jan 2004 23:46:46 -0000 1.17 *************** *** 71,78 **** void cListener::run() throw() { listenningSocket.bind( static_cast<Q_UINT32>(0), _port ); listenningSocket.listen( 20 ); listenningSocket.setBlocking( false ); // or else it would take a while to join() - listenningSocket.setAddressReusable( true ); while ( !canceled() ) --- 71,78 ---- void cListener::run() throw() { + listenningSocket.setAddressReusable( true ); listenningSocket.bind( static_cast<Q_UINT32>(0), _port ); listenningSocket.listen( 20 ); listenningSocket.setBlocking( false ); // or else it would take a while to join() while ( !canceled() ) |