Additional override.

This commit is contained in:
JoelKatz
2013-02-01 18:09:21 -08:00
parent 402f7539d4
commit 1012833991

View File

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