From ca0889d458ab768f32f399c0afe5f4e36dcd07d9 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 18 Dec 2005 20:48:54 +0000 Subject: Added IOHookModule stuff to allow for different modules to hook different ports git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2564 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd_io.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/inspircd_io.h b/include/inspircd_io.h index 19338e54b..158794555 100644 --- a/include/inspircd_io.h +++ b/include/inspircd_io.h @@ -22,6 +22,7 @@ #include #include "inspircd.h" #include "globals.h" +#include "modules.h" /** Flags for use with log() */ @@ -250,6 +251,10 @@ class ServerConfig : public classbase */ int ports[255]; + /** A list of ports claimed by IO Modules + */ + std::map IOHookModule; + ServerConfig(); /** Clears the include stack in preperation for @@ -269,6 +274,9 @@ class ServerConfig : public classbase int ConfValueEnum(char* tag,std::stringstream *config); int EnumConf(std::stringstream *config_f,const char* tag); int EnumValues(std::stringstream *config, const char* tag, int index); + Module* GetIOHook(int port); + bool AddIOHook(int port, Module* iomod); + bool DelIOHook(int port); }; -- cgit v1.2.3