Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Asio tcp::acceptor after close, then open->listen got error!!!!
From: l.jay Yuan (pass86_at_[hidden])
Date: 2010-03-08 20:57:47


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_at_[hidden]>:
> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net