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
-10
View File
@@ -26,7 +26,6 @@
#include <net/serverlobbythread.h>
#include <net/serverexception.h>
#include <net/senderhelper.h>
#include <net/receiverhelper.h>
#include <net/socket_msg.h>
#include <core/loghelper.h>
#include <db/serverdbinterface.h>
@@ -57,8 +56,6 @@ ServerGame::ServerGame(boost::shared_ptr<ServerLobbyThread> lobbyThread, u_int32
m_stateTimer1(lobbyThread->GetIOService()), m_stateTimer2(lobbyThread->GetIOService())
{
LOG_VERBOSE("Game object " << GetId() << " created.");
m_receiver.reset(new ReceiverHelper);
}
ServerGame::~ServerGame()
@@ -918,13 +915,6 @@ ServerGame::GetStateTimer2()
return m_stateTimer2;
}
ReceiverHelper &
ServerGame::GetReceiver()
{
assert(m_receiver.get());
return *m_receiver;
}
unsigned
ServerGame::GetSmallDelaySec() const
{