<br>Good afternoon all,<br><br>I&#39;m interested in writing a program using asio. I&#39;m new to both boost and asio. Is it possible to use async I/O with streams?<br><br>A stream is a good method for what I&#39;m interested in doing but I don&#39;t see how to make it work.<br>
What I&#39;ve got so far:<br>A class using event driven async I/O. The class parses the data into variable arbitrary sized messages.<br><br>I read from the tcp socket into a buffer, then create a stream from the buffer, then deserialize the data from the stream.<br>
<br>unsigned char     buffer[1024];<br><br>      // connect receive event<br>      socket-&gt;async_read_some(<br>        boost::asio::buffer(buffer),<br>        boost::bind( &amp;TcpConnection::receive, this,<br>          boost::asio::placeholders::error,<br>
          boost::asio::placeholders::bytes_transferred<br>         )<br>      );<br><br>I&#39;d like to be able to skip the buffer and just read directly to the stream with an event to notify me of the arrival of data.<br>
<br>Thanks!<br><br>-- <br>Cause united breaks guitars<br><a href="http://www.youtube.com/watch?v=5YGc4zOqozo">http://www.youtube.com/watch?v=5YGc4zOqozo</a><br><br>

