1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2008 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
14 #ifndef __CONNECTION_H__
15 #define __CONNECTION_H__
18 #include "inspircd_config.h"
20 #include "socketengine.h"
22 /** connection is the base class of User, and holds basic user properties.
23 * This can be extended for holding other user-like objects in the future.
25 class CoreExport connection : public EventHandler
28 /** Hostname of connection.
29 * This should be valid as per RFC1035.
33 /** Stats counter for bytes inbound
37 /** Stats counter for bytes outbound
41 /** Stats counter for commands inbound
45 /** Stats counter for commands outbound
49 /** True if user has authenticated, false if otherwise
53 /** Used by User to indicate the registration status of the connection
54 * It is a bitfield of the REG_NICK, REG_USER and REG_ALL bits to indicate
55 * the connection state.
59 /** Time the connection was last pinged
63 /** Time the connection was created, set in the constructor. This
64 * may be different from the time the user's classbase object was
69 /** Time that the connection last sent a message, used to calculate idle time
73 /** Used by PING checking code