]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/inspircd.h
Document ListenSocket class
[user/henk/code/inspircd.git] / include / inspircd.h
index cf884f9150363e565e18ea585d42031cef1da90c..44f5b519c41a415d42e5d7b3a92af7d07fe12978 100644 (file)
@@ -25,7 +25,7 @@
 #include "channels.h"
 #include "socket.h"
 #include "mode.h"
-#include "helperfuncs.h"
+
 #include "socketengine.h"
 #include "command_parse.h"
 
@@ -189,10 +189,6 @@ class InspIRCd : public classbase
         */
        bool DaemonSeed();
 
-       /** Build the upper/lowercase comparison table
-        */
-       void MakeLowerMap();
-
        /** Moves the given module to the last slot in the list
         * @param modulename The module name to relocate
         */
@@ -215,12 +211,6 @@ class InspIRCd : public classbase
         */
        void MoveBefore(std::string modulename, std::string before);
 
-       /** Process a user whos socket has been flagged as active
-        * @param cu The user to process
-        * @return There is no actual return value, however upon exit, the user 'cu' may have been deleted
-        */
-       void ProcessUser(userrec* cu);
-
        /** Iterate the list of InspSocket objects, removing ones which have timed out
         * @param TIME the current time
         */
@@ -281,6 +271,18 @@ class InspIRCd : public classbase
         */
        const long duration_y;
 
+       /** Used when connecting clients
+        */
+       insp_sockaddr client, server;
+
+       /** Used when connecting clients
+        */
+       socklen_t length;
+
+       /** Used to count iterations around the mainloop
+        */
+       int iterations;
+
  public:
        /** Time this ircd was booted
         */
@@ -310,14 +312,6 @@ class InspIRCd : public classbase
         */
        std::vector<InspSocket*> module_sockets;
 
-       /** Socket reference table, provides fast lookup of fd to InspSocket*
-        */
-       InspSocket* socket_ref[MAX_DESCRIPTORS];
-
-       /** user reference table, provides fast lookup of fd to userrec*
-        */
-       userrec* fd_ref_table[MAX_DESCRIPTORS];
-
        /** Client list, a hash_map containing all clients, local and remote
         */
        user_hash clientlist;
@@ -346,10 +340,6 @@ class InspIRCd : public classbase
         */
        TimerManager* Timers;
 
-       /** Command list, a hash_map of command names to command_t*
-        */
-       command_table cmdlist;
-
        /** X-Line manager. Handles G/K/Q/E line setting, removal and matching
         */
        XLineManager* XLines;
@@ -373,6 +363,12 @@ class InspIRCd : public classbase
         */
        time_t Time();
 
+       /** Process a user whos socket has been flagged as active
+        * @param cu The user to process
+        * @return There is no actual return value, however upon exit, the user 'cu' may have been deleted
+        */
+       void ProcessUser(userrec* cu);
+
        /** Get the total number of currently loaded modules
         * @return The number of loaded modules
         */