[Cppcms-users] Get data from a buffer??
Brought to you by:
artyom-beilis
From: Dietrich M. <die...@gm...> - 2012-10-07 13:08:32
|
Hey all, maybe I am totally blind, but I cannot figure out how I am supposed to get the data that e.g. a mutable_buffer contains. In you async example you use the read data from the socket to write it back to it again without modifying it. My plan is to call booster::aio::stream_socket::async_read<http://cppcms.com/cppcms_ref/latest/classbooster_1_1aio_1_1stream__socket.html#a8352a7b239da7e658c52b740488ed45a>to get the complete data in the callback and then parse it. A string or at least a char* to all the data would be totally fine, but as far as I see I can only get the first entry... Could someone give my a snippet or explain to me how to put the data of the buffer into a string? Thank you! |