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
48 /** Stats counter for bytes inbound
52 /** Stats counter for bytes outbound
56 /** Stats counter for commands inbound
60 /** Stats counter for commands outbound
64 /** True if server/user has authenticated, false if otherwise
69 * For a userrec, this is the port they connected to the network on.
70 * For a serverrec this is the current listening port of the serverrec object.
74 /** Used by userrec to indicate the registration status of the connection
78 /** Time the connection was last pinged
82 /** Time the connection was created, set in the constructor
86 /** Time that the connection last sent data, used to calculate idle time
90 /** Used by PING checks with clients
94 /** Default constructor