Rewriting network receive functions. This is still work in progress to make it more efficient.

This commit is contained in:
lotodore
2011-02-19 23:47:24 +00:00
parent e4679d58e7
commit 5730cd321d
20 changed files with 232 additions and 313 deletions
+2 -3
View File
@@ -21,8 +21,8 @@
#ifndef _SENDERHELPER_H_
#define _SENDERHELPER_H_
#include <boost/asio.hpp>
#include <net/netpacket.h>
#include <net/sendercallback.h>
class SessionData;
class SendBuffer;
@@ -30,7 +30,7 @@ class SendBuffer;
class SenderHelper
{
public:
SenderHelper(SenderCallback &cb, boost::shared_ptr<boost::asio::io_service> ioService);
SenderHelper(boost::shared_ptr<boost::asio::io_service> ioService);
~SenderHelper();
void Send(boost::shared_ptr<SessionData> session, boost::shared_ptr<NetPacket> packet);
@@ -41,7 +41,6 @@ protected:
private:
SenderCallback &m_callback;
boost::shared_ptr<boost::asio::io_service> m_ioService;
};