|
Boost Users : |
Subject: Re: [Boost-users] Boost::Asio -- Is this safe?
From: Igor R (boost.lists_at_[hidden])
Date: 2009-10-15 18:58:25
> for(neighboring nodes)
> {
> async_write(...)
> async_read(...)
> }
> m_ioService.run()
>
> There exists a tcp socket connection between each of the neighbors. The
handlers associated with both read and write merely do error checking.
> Is this okay, or is there a issue with this approach?
It's ok to perform read and write simultaneously.
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