summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-09 18:36:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-09 18:36:24 +0000
commitdfa831752c950f16872f3c485f94d408866a2e15 (patch)
treeb99e6837deeca18597eb4530bb7ccf3cf96e20ad /include
parentf4be97d195f206433c1b0a986959e75c01da1b20 (diff)
Not yet tested -- allow iohooking of inspsockets
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5886 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h6
-rw-r--r--include/inspsocket.h3
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;