mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Missing handler.
This commit is contained in:
@@ -123,6 +123,15 @@ public:
|
||||
basio::async_read_until(PlainSocket(), buffers, delim, handler);
|
||||
}
|
||||
|
||||
template <typename Allocator, typename MatchCondition, typename Handler>
|
||||
void async_read_until(basio::basic_streambuf<Allocator>& 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 <typename Buf, typename Handler> void async_write(const Buf& buffers, Handler handler)
|
||||
{
|
||||
if (isSecure())
|
||||
|
||||
Reference in New Issue
Block a user