boost ::asio:async_read_until usage/question from a newbie boost user
-
Hi, Just started using the boost libraries to do asynch i/o and not sure if this is the best forum for this but will post anyway. First question I am specifying a delimiter character in the call but when I display what I get back it looks like it is also implicitly returning when a LF \'n' char is reached even though this isn't my delimiter. Could this method have default delimiters that need to be managed? I haven't seen this in the documentation so far. Secondly, the second argument in the call is a "boost::asio::streambuf b". What's the best way to extract the message from the buffer and put it into an std::string? I've played around with: size_t n = b.size(); b.commit(n); std::istream is(&b); std::string s; is >> s; But now sure what's going on under the covers here. Any help would be appreciated. Thanks ak