From ef9d76b0fb5d7d8f14070214a269c5ced261f0dc Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 25 Jan 2013 11:11:04 -0800 Subject: [PATCH] Missing handler. --- src/cpp/ripple/AutoSocket.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cpp/ripple/AutoSocket.h b/src/cpp/ripple/AutoSocket.h index 95f513872b..1a3b6db7b6 100644 --- a/src/cpp/ripple/AutoSocket.h +++ b/src/cpp/ripple/AutoSocket.h @@ -123,6 +123,15 @@ public: basio::async_read_until(PlainSocket(), buffers, delim, handler); } + template + void async_read_until(basio::basic_streambuf& buffers, MatchCondition cond, Handler handler) + { + if (isSecure()) + basio::async_read_until(*mSocket, buffers, cond, handler); + else + basio::async_read_until(PlainSocket(), buffers, cond, handler); + } + template void async_write(const Buf& buffers, Handler handler) { if (isSecure())