The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

connection.h

Go to the documentation of this file.
00001 /*       +------------------------------------+
00002  *       | Inspire Internet Relay Chat Daemon |
00003  *       +------------------------------------+
00004  *
00005  *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
00006  * See: http://www.inspircd.org/wiki/index.php/Credits
00007  *
00008  * This program is free but copyrighted software; see
00009  *            the file COPYING for details.
00010  *
00011  * ---------------------------------------------------
00012  */
00013 
00014 #ifndef __CONNECTION_H__
00015 #define __CONNECTION_H__
00016 
00017 #include <ctime>
00018 #include "inspircd_config.h"
00019 #include "base.h"
00020 #include "socketengine.h"
00021 
00025 class CoreExport connection : public EventHandler
00026 {
00027  public:
00031         std::string host;
00032 
00035         int bytes_in;
00036 
00039         int bytes_out;
00040 
00043         int cmds_in;
00044 
00047         int cmds_out;
00048 
00051         bool haspassed;
00052 
00057         char registered;
00058 
00061         time_t lastping;
00062 
00067         time_t signon;
00068 
00071         time_t idle_lastmsg;
00072 
00075         time_t nping;
00076 };
00077 
00078 
00079 #endif