1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
17 #ifndef __CONNECTION_H__
18 #define __CONNECTION_H__
21 #include "inspircd_config.h"
23 #include "socketengine.h"
25 /** connection is the base class of userrec, and holds basic user properties.
26 * This can be extended for holding other user-like objects in the future.
28 class connection : public EventHandler
31 /** Hostname of connection.
32 * This should be valid as per RFC1035.
36 /** Stats counter for bytes inbound
40 /** Stats counter for bytes outbound
44 /** Stats counter for commands inbound
48 /** Stats counter for commands outbound
52 /** True if user has authenticated, false if otherwise
56 /** Used by userrec to indicate the registration status of the connection
57 * It is a bitfield of the REG_NICK, REG_USER and REG_ALL bits to indicate
58 * the connection state.
62 /** Time the connection was last pinged
66 /** Time the connection was created, set in the constructor. This
67 * may be different from the time the user's classbase object was
72 /** Time that the connection last sent a message, used to calculate idle time
76 /** Used by PING checking code