00001 /* 00002 00003 $Log$ 00003 Revision 1.3 2003/01/27 00:28:57 brain 00003 ... 00003 00004 Revision 1.1 2003/01/26 23:52:59 brain 00005 Modified documentation for base classes 00006 Added base classes 00007 00008 Revision 1.1 2003/01/26 20:15:00 brain 00009 Added server classes for linking 00010 00011 00012 */ 00013 00014 #include "inspircd_config.h" 00015 #include "base.h" 00016 #include <string> 00017 #include <map.h> 00018 00019 #ifndef __CONNECTION_H__ 00020 #define __CONNECTION_H__ 00021 00022 class connection : public classbase 00023 { 00024 public: 00025 int fd; // file descriptor 00026 char host[256]; // hostname 00027 long ip; // ipv4 address 00028 char inbuf[MAXBUF]; // recvQ 00029 long bytes_in; 00030 long bytes_out; 00031 long cmds_in; 00032 long cmds_out; 00033 bool haspassed; 00034 int port; 00035 int registered; 00036 time_t lastping; 00037 time_t signon; 00038 time_t idle_lastmsg; 00039 time_t nping; 00040 }; 00041 00042 00043 #endif 00044