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 /** Please note: classes serverrec and userrec both inherit from class connection.
26 class connection : public Extensible
29 /** File descriptor of the connection
33 /** Hostname of connection. Not used if this is a serverrec
37 /** Stats counter for bytes inbound
41 /** Stats counter for bytes outbound
45 /** Stats counter for commands inbound
49 /** Stats counter for commands outbound
53 /** True if server/user has authenticated, false if otherwise
58 * For a userrec, this is the port they connected to the network on.
59 * For a serverrec this is the current listening port of the serverrec object.
63 /** Used by userrec to indicate the registration status of the connection
67 /** Time the connection was last pinged
71 /** Time the connection was created, set in the constructor
75 /** Time that the connection last sent data, used to calculate idle time
79 /** Used by PING checks with clients
83 /** Default constructor