Removing a buffered delay when the client sends data (no longer necessary with asio).

This commit is contained in:
lotodore
2009-06-16 22:36:07 +00:00
parent 87363094d2
commit 35d0988f78
2 changed files with 26 additions and 61 deletions
+1 -4
View File
@@ -107,8 +107,7 @@ protected:
void CancelTimers();
void InitGame();
void AddPacket(boost::shared_ptr<NetPacket> packet);
void TimerSendPacketLoop(const boost::system::error_code &ec);
void SendPacket(boost::shared_ptr<NetPacket> packet);
bool GetCachedPlayerInfo(unsigned id, PlayerInfo &info) const;
void RequestPlayerInfo(unsigned id, bool requestAvatar = false);
@@ -194,7 +193,6 @@ private:
boost::shared_ptr<ClientSenderCallback> m_senderCallback;
NetPacketList m_outPacketList;
mutable boost::mutex m_outPacketListMutex;
boost::shared_ptr<ClientContext> m_context;
ClientState *m_curState;
@@ -246,7 +244,6 @@ private:
boost::asio::deadline_timer m_stateTimer;
boost::asio::deadline_timer m_avatarTimer;
boost::asio::deadline_timer m_sendTimer;
friend class AbstractClientStateReceiving;
friend class ClientStateInit;