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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user