diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/configreader.h | 6 | ||||
-rw-r--r-- | include/inspsocket.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/configreader.h b/include/configreader.h index 1790bd847..2c048c849 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -30,6 +30,7 @@ class ServerConfig; class InspIRCd; +class InspSocket; /** Types of data in the core config */ @@ -445,6 +446,8 @@ class ServerConfig : public Extensible */ std::map<int,Module*> IOHookModule; + std::map<InspSocket*, Module*> SocketIOHookModule; + /** The 005 tokens of this server (ISUPPORT) * populated/repopulated upon loading or unloading * modules. @@ -560,6 +563,9 @@ class ServerConfig : public Extensible Module* GetIOHook(int port); bool AddIOHook(int port, Module* iomod); bool DelIOHook(int port); + Module* GetIOHook(InspSocket* is); + bool AddIOHook(InspSocket* is, Module* iomod); + bool DelIOHook(InspSocket* is); static std::string GetFullProgDir(char** argv, int argc); static bool DirValid(const char* dirandfile); diff --git a/include/inspsocket.h b/include/inspsocket.h index 71f16951e..52de46c2d 100644 --- a/include/inspsocket.h +++ b/include/inspsocket.h @@ -71,6 +71,9 @@ class SocketTimeout : public InspTimer class InspSocket : public EventHandler { public: + + bool IsIOHooked; + InspIRCd* Instance; SocketTimeout* Timeout; |