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  *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
00006  *                       E-mail:
00007  *                <brain@chatspike.net>
00008  *                <Craig@chatspike.net>
00009  *     
00010  * Written by Craig Edwards, Craig McLure, and others.
00011  * This program is free but copyrighted software; see
00012  *            the file COPYING for details.
00013  *
00014  * ---------------------------------------------------
00015  */
00016 
00017 #include "inspircd_config.h"
00018 #include "base.h"
00019 #include <string>
00020 #include <map>
00021 #include <sys/types.h>
00022 #include <sys/socket.h>
00023 #include <netdb.h>
00024 #include <netinet/in.h>
00025 #include <unistd.h>
00026 #include <errno.h>
00027 #include <time.h>
00028 #include <vector>
00029 #include <deque>
00030 #include <sstream>
00031 
00032 #ifndef __CONNECTION_H__
00033 #define __CONNECTION_H__
00034 
00037 class connection : public Extensible
00038 {
00039  public:
00042         int fd;
00043         
00046         char host[160];
00047         
00050         char ip[16];
00051         
00054         int bytes_in;
00055 
00058         int bytes_out;
00059 
00062         int cmds_in;
00063 
00066         int cmds_out;
00067 
00070         bool haspassed;
00071 
00076         int port;
00077         
00080         char registered;
00081         
00084         time_t lastping;
00085         
00088         time_t signon;
00089         
00092         time_t idle_lastmsg;
00093         
00096         time_t nping;
00097         
00100         connection()
00101         {
00102                 this->fd = -1;
00103         }
00104 };
00105 
00106 
00107 #endif
00108 
00109 

Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  doxygen 1.4.4-20050815