summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-08 20:38:53 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-08 20:38:53 +0000
commit00bc6a80a2af628474dd14b7bdc3c25028150d31 (patch)
treeeb175c9861efc725aaa0fc9fca571977b0b94a27
parentb745471954b542170cc20e69dc049ff8d027da6c (diff)
Fix compile problems hopefully..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10474 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/extra/m_mysql.cpp34
1 files 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<std::string, SQLConnection*> 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)
{