]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/configreader.h
irc::tokenstream is a token parser which using std::string and std::vector builds...
[user/henk/code/inspircd.git] / include / configreader.h
index 3bb7bb4ed4368aac2bb0a8cbeb6a614f9fb0138f..b37838cf152b605a44e5a88f0ef8fb3c83fc50ce 100644 (file)
@@ -32,7 +32,8 @@ typedef bool (*MultiNotify)(const char*);
 
 enum ConfigDataType { DT_NOTHING, DT_INTEGER, DT_CHARPTR, DT_BOOLEAN };
 
-struct InitialConfig {
+struct InitialConfig
+{
        char* tag;
        char* value;
        void* val;
@@ -40,7 +41,8 @@ struct InitialConfig {
        Validator validation_function;
 };
 
-struct MultiConfig {
+struct MultiConfig
+{
        const char* tag;
        char* items[12];
        int datatype[12];
@@ -299,6 +301,10 @@ class ServerConfig : public Extensible
         */
        int ports[255];
 
+       /** A list of the file descriptors for the listening client ports
+        */
+       int openSockfd[MAX_DESCRIPTORS];
+
        /** Boolean sets of which modules implement which functions
         */
        char implement_lists[255][255];
@@ -338,6 +344,10 @@ class ServerConfig : public Extensible
         */
        std::map<std::string,int> maxbans;
 
+       /** If set to true, no user DNS lookups are to be performed
+        */
+       bool NoUserDns;
+
        ServerConfig();
 
        /** Clears the include stack in preperation for