23 Jul
2009
23 Jul
'09
1:41 p.m.
I'm not 100% clear on this yet, is it safe for my thread to call async_write over and over again without waiting for previous writes to complete?
Is it safe to do this on two different threads writing each out on their own socket?
It's safe to issue simultanious async_write's for different sockets and buffers. It's not safe to do this for the same socket, because async_write() does not guarantee that all the data is sent at once.