Subject: Re: [Boost-users] [asio] async_write with multiple messages
From: Igor R (boost.lists_at_[hidden])
Date: 2010-02-10 14:28:51


> Can I send multiple messages to async_write without waiting for write completion callback?

You mean, to the same socket?
async_write() is a composite operation, it consists of multiple
tcp::socket::asycn_write_some() calls. At least for this reason, your
will be mixed-up.

> If yes, can I do it from more then one thread?

No, tcp::socket is not thread-safe, you can't call its methods from
multiple threads.