<div dir="ltr"><br><br><div class="gmail_quote">2009/1/23 Johan Mazel <span dir="ltr">&lt;<a href="mailto:johan.mazel@gmail.com">johan.mazel@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks a lot for the fast answer.<br><br>I have another question about the boost::mutable_buffer since they are used to send and receive payload through the upd socket with the methods send_to and receive_from.<br>I&#39;d like to know how can I assign the content of a mutable_buffer to a char * ?<br>

I found the method buffer_cast (<a href="http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/reference/mutable_buffer/buffer_cast.html" target="_blank">http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/reference/mutable_buffer/buffer_cast.html</a>) but I don&#39;t really understand how to use it.<br>

<br></blockquote><div><br>You can use it just as described here:<br><a href="http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/reference/buffer.html">http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/reference/buffer.html</a><br>
But in most cases you don&#39;t need this function, as you&#39;ve got more safe ways to get the data (please refer to the asio tutorial and examples). <br></div></div><br></div>

