|
Boost Users : |
From: Igor R (boost.lists_at_[hidden])
Date: 2008-08-06 11:09:56
read (or async_read) free function can read the data to asio::streambuf
(See ASIO manual for details:
http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio.html)
Then you can process it using standard stl methods, like in this example:
http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/example/http/client/sync_client.cpp
2008/8/6, Jean-Sebastien Stoezel <js.stoezel_at_[hidden]>:
> Hello,
>
> Is it possible to directly read into a string using boost::asio::read?
> Or do I have to first read into an array of char, then assign it to
> the string?
>
> Thanks!
> Jean
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net