With this overload: http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/reference/async_rea... ...you can implement any condition you wish.
Hello List,
I get a compiling error:
error: no matching function for call to
'async_read_until(boost::asio::basic_stream_socket
read_condition( iterator begin, iterator end ) { boost::asio::ip::tcp::socket::receive_buffer_size option; socket_.get_option(option); if((end - begin) >= option.value()) { return std::make_pair(end,true); } while(begin != end) { if(*begin++ == '>') { return std::make_pair(begin,true); } } return std::make_pair(end,false); }
So why am I getting <unresolved overloaded function type>? Regards, Etienne