One more.

This commit is contained in:
JoelKatz
2013-02-01 18:18:57 -08:00
parent 7e6e164513
commit b9642f0e9e

View File

@@ -169,6 +169,15 @@ public:
boost::asio::async_read(PlainSocket(), buffers, cond, handler);
}
template <typename Allocator, typename Handler>
void async_read(basio::basic_streambuf<Allocator>& buffers, Condition cond, Handler handler)
{
if (isSecure())
boost::asio::async_read(*mSocket, buffers, handler);
else
boost::asio::async_read(PlainSocket(), buffers, handler);
}
template <typename Buf, typename Handler> void async_read(const Buf& buffers, Handler handler)
{
if (isSecure())