summaryrefslogtreecommitdiff
path: root/include/usermanager.h
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-13 03:51:04 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-13 03:51:04 +0000
commitde6bba7882bc53b5a23e4854069d4846616f2001 (patch)
treee1a2210945e0d876dc27d71d71431dd1b308b867 /include/usermanager.h
parent2192a9f58aae466a42d60279fb34ee3c5d2950a1 (diff)
Move User::AddClient to UserManager::AddClient. WARNING: I assure you this is currently WRONG as I was playing with moving a few bits to the constructor.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8706 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/usermanager.h')
-rw-r--r--include/usermanager.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/usermanager.h b/include/usermanager.h
index 5ca6401bb..9cc3e0309 100644
--- a/include/usermanager.h
+++ b/include/usermanager.h
@@ -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
*/