]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/usermanager.h
Add logger.(cpp|h), will eventually hold implementation of logging manager
[user/henk/code/inspircd.git] / include / usermanager.h
index 5ca6401bb58459eabd1e17e754c520b4f0a7a666..9cc3e0309bca742c5286a7fc29e80fccba65d022 100644 (file)
@@ -36,6 +36,18 @@ class CoreExport UserManager : public classbase
         */
        clonemap global_clones;
 
+       /** Add a client to the system.
+        * This will create a new User, insert it into the user_hash,
+        * initialize it as not yet registered, and add it to the socket engine.
+        * @param Instance a pointer to the server instance
+        * @param socket The socket id (file descriptor) this user is on
+        * @param port The port number this user connected on
+        * @param iscached This variable is reserved for future use
+        * @param ip The IP address of the user
+        * @return This function has no return value, but a call to AddClient may remove the user.
+        */
+       void AddClient(InspIRCd* Instance, int socket, int port, bool iscached, int socketfamily, sockaddr* ip);
+
        /** Add a user to the local clone map
         * @param user The user to add
         */