<br><div class="gmail_quote">On Wed, Sep 16, 2009 at 4:39 PM, Igor R <span dir="ltr"><<a href="mailto:boost.lists@gmail.com">boost.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div class="im">> I have a boost::asio::ip::tcp::socket that I want to write to. Can I have multiple outstanding async_write() requests for a single socket?<br> <br> </div>asio::async_write() is a convenience function that calls<br> socket::async_write_some() multiple times - until all the data is<br> sent. This means that if you issue multiple asio::async_write's, the<br> data will be interleaved in most cases.<br> As for multiple async_write_some(), it will probably work on some<br> platforms... But note that async_write_some doesn't promise to send<br> all your data. So you can't "fire and forget" anyway.<br> <div><div></div><div class="h5">_______________________________________________<br> Boost-users mailing list<br> <a href="mailto:Boost-users@lists.boost.org">Boost-users@lists.boost.org</a><br> <a href="http://lists.boost.org/mailman/listinfo.cgi/boost-users" target="_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-users</a></div></div></blockquote></div><br><br>I had the same doubt, and asked the same think some weeks ago. Here's what helped me figuring out what happens: <br> - <a href="http://archives.free.net.ph/message/20090821.085221.7ccd0f8a.pt-BR.html">http://archives.free.net.ph/message/20090821.085221.7ccd0f8a.pt-BR.html</a><br> - <a href="http://www.jetbyte.com/portfolio-showarticle.asp?articleId=44&catId=1&subcatId=2">http://www.jetbyte.com/portfolio-showarticle.asp?articleId=44&catId=1&subcatId=2</a><br> <br> Regards,<br>-- <br>Matheus Araújo Aguiar<br>Computer Scientist<br><a href="mailto:matheus.pit@gmail.com">matheus.pit@gmail.com</a><br>