From dfa831752c950f16872f3c485f94d408866a2e15 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 9 Dec 2006 18:36:24 +0000 Subject: Not yet tested -- allow iohooking of inspsockets git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5886 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/configreader.h | 6 ++++++ include/inspsocket.h | 3 +++ 2 files changed, 9 insertions(+) (limited to 'include') 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 IOHookModule; + std::map 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; -- cgit v1.3.1-10-gc9f91