Boost.Asio tcp::acceptor after close, then open->listen got error!!!!
8 Mar
2010
8 Mar
'10
10:33 a.m.
Boost.Asio tcp::acceptor after close, then open->listen got error!!!! cannot reopen?
9 Mar
9 Mar
1:57 a.m.
New subject: Boost.Asio tcp::acceptor after close, then open->listen got error!!!!
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
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
5364
Age (days ago)
5365
Last active (days ago)
2 comments
2 participants
participants (2)
-
l.jay Yuan
-
Rutger ter Borg