From 7dd159add2e0c01e6c8a2365bcfb9ce21cd4d71f Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 8 Feb 2015 20:27:17 -0500 Subject: [PATCH] use 'available' method --- NTCPSession.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/NTCPSession.cpp b/NTCPSession.cpp index 029ae905..43816d2d 100644 --- a/NTCPSession.cpp +++ b/NTCPSession.cpp @@ -509,9 +509,7 @@ namespace transport // try to read more if (numReloads < 5) { - boost::asio::socket_base::bytes_readable command (true); - m_Socket.io_control (command); - size_t moreBytes = command.get(); + size_t moreBytes = m_Socket.available(); if (moreBytes) { if (moreBytes > NTCP_BUFFER_SIZE - m_ReceiveBufferOffset)