Ah ha! My use of asio was correct, but my mistake was streaming binary data to std::cout! I used a filestream instead, and now it works.
:).
You aren't using async_write correctly, posting two asynchronous writes concurrently is an application error. This is described in documentation for async_write This operation is implemented in terms of zero or more calls to the stream's async_write_some function, and is known as a composed operation. The program must ensure that the stream performs no other write operations (such as async_write, the stream's async_write_some function, or any other composed operations that perform writes) until this operation completes.
You most likely are observing correct behavior because the data you are sending is so short (12 and 3 bytes, respectively). I suggest posting the second async_write after the handler for your first one is invoked.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.