* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- * E-mail:
- * <brain@chatspike.net>
- * <Craig@chatspike.net>
- *
- * Written by Craig Edwards, Craig McLure, and others.
+ * InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
* This program is free but copyrighted software; see
* the file COPYING for details.
*
#include <time.h>
#include "inspircd_config.h"
#include "base.h"
+#include "socketengine.h"
-/** connection is the base class of userrec, and holds basic user properties.
+/** connection is the base class of User, and holds basic user properties.
* This can be extended for holding other user-like objects in the future.
*/
-class connection : public Extensible
+class CoreExport connection : public EventHandler
{
public:
- /** File descriptor of the connection.
- * For a remote connection, this will have a negative value.
- */
- int fd;
-
/** Hostname of connection.
* This should be valid as per RFC1035.
*/
*/
bool haspassed;
- /** Used by userrec to indicate the registration status of the connection
+ /** Used by User to indicate the registration status of the connection
* It is a bitfield of the REG_NICK, REG_USER and REG_ALL bits to indicate
* the connection state.
*/
/** Used by PING checking code
*/
time_t nping;
-
- /** Default constructor, creates the user as remote.
- */
- connection()
- {
- this->fd = -1;
- }
};