10 Feb
2010
10 Feb
'10
7:28 p.m.
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.