[Quickfix-developers] SocketReuseAddress default value
Brought to you by:
orenmnero
From: Joerg T. <Joe...@ma...> - 2003-04-09 09:24:04
|
Hi, in the documentation there is no default value for SocketReuseAddress given. According to the source (examples from SocketAcceptor.h / .cpp) 68 class SocketAcceptor : public Acceptor, SocketServer::Strategy ... 100 bool m_reuseAddress; ... 88 if( s.get().has( SOCKET_REUSE_ADDRESS ) ) 89 m_reuseAddress = ( bool ) s.get().getBool( SOCKET_REUSE_ADDRESS ); the m_reuseAddress is not initialized if the SocketReuseAddress is not used. It would be better to set 100 bool m_reuseAddress = false; and document it. Jörg -- Joerg Thoennes http://macd.com Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen |