async_read_until

| Home | Libraries | People | FAQ | More

### async_read_until

Start an asynchronous operation to read data into a streambuf until a delimiter is encountered.

    template<
        typename AsyncReadStream,
        typename Allocator,
        typename ReadHandler>
    void async_read_until(
        AsyncReadStream & s,
        boost::asio::basic_streambuf< Allocator > & b,
        char delim,
        ReadHandler handler);

    template<
        typename AsyncReadStream,
        typename Allocator,
        typename ReadHandler>
    void async_read_until(
        AsyncReadStream & s,
        boost::asio::basic_streambuf< Allocator > & b,
        const std::string & delim,
        ReadHandler handler);

    template<
        typename AsyncReadStream,
        typename Allocator,
        typename ReadHandler>
    void async_read_until(
        AsyncReadStream & s,
        boost::asio::basic_streambuf< Allocator > & b,
        const boost::regex & expr,
        ReadHandler handler);