$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] Rading data from streambuf
From: Lloyd (lloyd_at_[hidden])
Date: 2009-11-11 06:14:58
Hi,
How can we read data from a streambuf? I am using boost asio.
My code is as follows-
boost::asio::streambuf stream;
boost::asio::async_read_until(Socket,
stream,string("\r\n"),
boost::bind(&TCPConnection::HandleRead, shared_from_this(),
boost::asio::placeholders::error));
....
....
How can i get the data from "stream" as a "char *buffer" or as a "string"
Thanks,
Lloyd
______________________________________
Scanned and protected by Email scanner