|
Boost Users : |
Subject: Re: [Boost-users] Can I call async_write twice in a row?
From: michi7x7 (mailing-lists_at_[hidden])
Date: 2010-09-23 11:41:44
Hi,
> Is this legal? I think I understood in the documentation that it
> isn't, but I'm not
> sure if it means this:
>
>
> void func() {
>
> async_write(....);
> async_write(...);
> }
There is no problem with this, but the data is not guaranteed to be sent
ordered.
So if order matters (which is usually the case) either use one buffer or
use the callback.
Regards,
michi7x7
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