Chat bot integration now fully functional.

This commit is contained in:
lotodore
2009-08-17 09:45:06 +00:00
parent f7885f9116
commit 836ec60e6d
18 changed files with 180 additions and 37 deletions
+3 -1
View File
@@ -25,13 +25,14 @@
#include <boost/enable_shared_from_this.hpp>
#include <string>
#include <net/internalchatcleanerpacket.h>
#include <net/chatcleanercallback.h>
class EncodedPacket;
class ChatCleanerManager : public boost::enable_shared_from_this<ChatCleanerManager>
{
public:
ChatCleanerManager(boost::shared_ptr<boost::asio::io_service> ioService);
ChatCleanerManager(ChatCleanerCallback &cb, boost::shared_ptr<boost::asio::io_service> ioService);
virtual ~ChatCleanerManager();
void Init(const std::string &serverAddr, int port, bool ipv6,
@@ -51,6 +52,7 @@ protected:
private:
ChatCleanerCallback &m_callback;
boost::shared_ptr<boost::asio::io_service> m_ioService;
boost::shared_ptr<boost::asio::ip::tcp::resolver> m_resolver;
boost::shared_ptr<boost::asio::ip::tcp::socket> m_socket;