summaryrefslogtreecommitdiff
path: root/include/connection.h~
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2003-01-26 23:53:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2003-01-26 23:53:03 +0000
commitf81a2e12b09634cacd4ccf9da584c835ee71bf24 (patch)
tree7772d7719b6b369bd618eafb8f4b926d21192dcc /include/connection.h~
parent767b12b0ab6a0d4ed5f7335b26d1c0f842d99543 (diff)
Modified documentation for base classes
Added base classes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@151 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/connection.h~')
-rw-r--r--include/connection.h~44
1 files changed, 44 insertions, 0 deletions
diff --git a/include/connection.h~ b/include/connection.h~
new file mode 100644
index 000000000..d74d6d20f
--- /dev/null
+++ b/include/connection.h~
@@ -0,0 +1,44 @@
+/*
+
+$Log$
+Revision 1.1 2003/01/26 23:52:59 brain
+Modified documentation for base classes
+Added base classes
+
+Revision 1.1 2003/01/26 20:15:00 brain
+Added server classes for linking
+
+
+*/
+
+#include "inspircd_config.h"
+#include "base.h"
+#include <string>
+#include <map.h>
+
+#ifndef __CONNECTION_H__
+#define __CONNECTION_H__
+
+class connection : public classbase
+{
+ public:
+ int fd; // file descriptor
+ char host[256]; // hostname
+ long ip; // ipv4 address
+ char inbuf[MAXBUF]; // recvQ
+ long bytes_in;
+ long bytes_out;
+ long cmds_in;
+ long cmds_out;
+ bool haspassed;
+ int port;
+ int registered;
+ time_t lastping;
+ time_t signon;
+ time_t idle_lastmsg;
+ time_t nping;
+};
+
+
+#endif
+