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"
24 /** connection is the base class of userrec, and holds basic user properties.
25 * This can be extended for holding other user-like objects in the future.
27 class connection : public Extensible
30 /** File descriptor of the connection.
31 * For a remote connection, this will have a negative value.
35 /** Hostname of connection.
36 * This should be valid as per RFC1035.
40 /** Stats counter for bytes inbound
44 /** Stats counter for bytes outbound
48 /** Stats counter for commands inbound
52 /** Stats counter for commands outbound
56 /** True if user has authenticated, false if otherwise
60 /** Used by userrec to indicate the registration status of the connection
61 * It is a bitfield of the REG_NICK, REG_USER and REG_ALL bits to indicate
62 * the connection state.
66 /** Time the connection was last pinged
70 /** Time the connection was created, set in the constructor. This
71 * may be different from the time the user's classbase object was
76 /** Time that the connection last sent a message, used to calculate idle time
80 /** Used by PING checking code
84 /** Default constructor, creates the user as remote.