Rewriting sender yet again to fit the new asio design. Polling for new send data is no longer needed, this also reduces lag.

This commit is contained in:
lotodore
2009-06-07 08:51:43 +00:00
parent 9e50969bdc
commit 5f3369432a
14 changed files with 187 additions and 269 deletions
+3 -3
View File
@@ -36,7 +36,7 @@
#define NET_ADMIN_IRC_TERMINATE_TIMEOUT_MSEC 4000
class SenderInterface;
class SenderHelper;
class ReceiverHelper;
class ServerSenderCallback;
class ServerGame;
@@ -95,7 +95,7 @@ public:
ServerStats GetStats() const;
boost::posix_time::ptime GetStartTime() const;
SenderInterface &GetSender();
SenderHelper &GetSender();
protected:
@@ -175,7 +175,7 @@ private:
boost::shared_ptr<boost::asio::io_service::work> m_work;
boost::shared_ptr<ServerSenderCallback> m_senderCallback;
boost::shared_ptr<SenderInterface> m_sender;
boost::shared_ptr<SenderHelper> m_sender;
boost::shared_ptr<ReceiverHelper> m_receiver;
SessionManager m_sessionManager;