
9 Mar
2010
9 Mar
'10
1:57 a.m.
yes!you are right! acceptor_.open(endpoint_.protocol()); acceptor_.set_option(boost::asio::socket_base::reuse_address(true)); /* I forgot this line */ acceptor_.bind(endpoint_); acceptor_.listen(); thank you very much!!! 2010/3/8 Rutger ter Borg <rutger@terborg.net>:
l.jay Yuan wrote:
Boost.Asio tcp::acceptor after close, then open->listen got error!!!! cannot reopen?
Based on this little amount of information, there's not much to say about it. Have you set reuse_address to true?
Rutger
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users