Boost::asio::async_write problem?

You're not using boost::asio::streambuf correctly, read the HTTP client example closely. For your code, you should do something like.

As a could see you just don't close the socket and even don't delete the session. After you successful write and complete write handler, you leave the session object making memory leak. Also the char* c = new charbytes_transferred; make a memory leak as it is never used again, boost::asio::buffer don't deallocate the memory for you.

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.

Related Questions