summaryrefslogtreecommitdiff
path: root/include/inspsocket.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-17 19:51:12 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-17 19:51:12 +0000
commit343ab3f06d8dc6498e2668c1b5cd7aa9c2ef2d6a (patch)
treef6d121fa126b54608c97ec1124e6f9f698f5e917 /include/inspsocket.h
parent4a7ee5ac5fe063cdd174d270984e2e332b8b401f (diff)
Fix for incorrect template application by GCC 3.4
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12285 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspsocket.h')
-rw-r--r--include/inspsocket.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/inspsocket.h b/include/inspsocket.h
index d6ee91f4d..f9d582637 100644
--- a/include/inspsocket.h
+++ b/include/inspsocket.h
@@ -106,9 +106,9 @@ class CoreExport StreamSocket : public EventHandler
std::string recvq;
public:
StreamSocket() : sendq_len(0) {}
- inline Module* GetIOHook() { return IOHook; }
- inline void AddIOHook(Module* m) { IOHook = m; }
- inline void DelIOHook() { IOHook = NULL; }
+ inline Module* GetIOHook();
+ inline void AddIOHook(Module* m);
+ inline void DelIOHook();
/** Handle event from socket engine.
* This will call OnDataReady if there is *new* data in recvq
*/
@@ -219,4 +219,9 @@ class CoreExport BufferedSocket : public StreamSocket
BufferedSocketError BeginConnect(const std::string &ipaddr, int aport, unsigned long maxtime, const std::string &connectbindip);
};
+#include "modules.h"
+
+inline Module* StreamSocket::GetIOHook() { return IOHook; }
+inline void StreamSocket::AddIOHook(Module* m) { IOHook = m; }
+inline void StreamSocket::DelIOHook() { IOHook = NULL; }
#endif