X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Finspsocket.h;h=f9d582637da26089f6febed12b71f032fa5700e8;hb=4498f1abd163b140efcbbd9e75173665c9b1c29f;hp=d6ee91f4da4def0cf9314b1124a27d8d0ae46686;hpb=cd712c40e1b352c05e7ae0f72e0a5e84cdf64323;p=user%2Fhenk%2Fcode%2Finspircd.git 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