Further simplifying sending network data. This improves performance, because sending sessions no longer need to be looked up in a map.

This commit is contained in:
lotodore
2011-02-19 13:56:49 +00:00
parent a69c248d1c
commit 8279868417
5 changed files with 27 additions and 57 deletions
+2 -7
View File
@@ -18,6 +18,7 @@
***************************************************************************/
#include <net/sessiondata.h>
#include <net/senddatamanager.h>
#include <gsasl.h>
using namespace std;
@@ -29,6 +30,7 @@ SessionData::SessionData(boost::shared_ptr<boost::asio::ip::tcp::socket> sock, S
m_autoDisconnectTimer(boost::posix_time::time_duration(0, 0, 0), boost::timers::portable::microsec_timer::auto_start),
m_callback(cb), m_authSession(NULL), m_curAuthStep(0)
{
m_sendDataManager.reset(new SendDataManager);
}
SessionData::~SessionData()
@@ -232,13 +234,6 @@ SessionData::SetClientAddr(const std::string &addr)
m_clientAddr = addr;
}
ReceiveBuffer &
SessionData::GetReceiveBuffer()
{
// mutex protection, if needed, within buffer.
return m_receiveBuffer;
}
void
SessionData::ResetActivityTimer()
{