Boost logo

Boost Users :

Subject: Re: [Boost-users] [ASIO] async_accept : Error m_val 1.
From: Igor R (boost.lists_at_[hidden])
Date: 2011-03-10 09:58:17


> What is "already open" ? _client ? It has just been allocated before calling async_accept.
> _io is properly initialized.
>
> If this error is about acceptor, how can I use it with async_accept ? I've seen http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/reference/basic_socket_acceptor/async_accept/overload1.html but i don't see any line where the listen port is set to acceptor.

Like Viatcheslav mentioned, set reuse_address option:
http://think-async.com/Asio/boost_asio_1_5_2/doc/html/boost_asio/reference/socket_base/reuse_address.html


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