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 #include "inspircd_config.h"
21 #include <sys/types.h>
22 #include <sys/socket.h>
24 #include <netinet/in.h>
32 #ifndef __CONNECTION_H__
33 #define __CONNECTION_H__
35 /** Please note: classes serverrec and userrec both inherit from class connection.
37 class connection : public Extensible
40 /** File descriptor of the connection
44 /** Hostname of connection. Not used if this is a serverrec
52 /** Stats counter for bytes inbound
56 /** Stats counter for bytes outbound
60 /** Stats counter for commands inbound
64 /** Stats counter for commands outbound
68 /** True if server/user has authenticated, false if otherwise
73 * For a userrec, this is the port they connected to the network on.
74 * For a serverrec this is the current listening port of the serverrec object.
78 /** Used by userrec to indicate the registration status of the connection
82 /** Time the connection was last pinged
86 /** Time the connection was created, set in the constructor
90 /** Time that the connection last sent data, used to calculate idle time
94 /** Used by PING checks with clients
98 /** Default constructor