From 00bc6a80a2af628474dd14b7bdc3c25028150d31 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 8 Sep 2008 20:38:53 +0000 Subject: Fix compile problems hopefully.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10474 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_mysql.cpp | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index 9f9db7595..87fb01d65 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -68,7 +68,7 @@ class SQLConnection; -class Notifier; +class MySQLListener; typedef std::map ConnMap; @@ -657,24 +657,6 @@ class DispatcherThread : public Thread virtual void Run(); }; -/** Spawn HTTP sockets from a listener - */ -class MySQLListener : public ListenSocketBase -{ - FileReader* index; - - public: - HttpListener(InspIRCd* Instance, int port, char* addr) : ListenSocketBase(Instance, port, addr) - { - this->index = idx; - } - - virtual void OnAcceptReady(const std::string &ipconnectedto, int nfd, const std::string &incomingip) - { - new Notifier(this->ServerInstance, nfd, (char)ipconnectedto.c_str()); // XXX unsafe casts suck - } -}; - /** Used by m_mysql to notify one thread when the other has a result */ class Notifier : public BufferedSocket @@ -728,6 +710,20 @@ class Notifier : public BufferedSocket } }; +/** Spawn sockets from a listener + */ +class MySQLListener : public ListenSocketBase +{ + FileReader* index; + + public: + MySQLListener(InspIRCd* Instance, int port, char* addr) : ListenSocketBase(Instance, port, addr) { } + + virtual void OnAcceptReady(const std::string &ipconnectedto, int nfd, const std::string &incomingip) + { + new Notifier(this->ServerInstance, nfd, (char *)ipconnectedto.c_str()); // XXX unsafe casts suck + } +}; ModuleSQL::ModuleSQL(InspIRCd* Me) : Module(Me), rehashing(false) { -- cgit v1.2.3