]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/connection.h
irc::tokenstream is a token parser which using std::string and std::vector builds...
[user/henk/code/inspircd.git] / include / connection.h
index ab7bd81e1f68c46fce734c801cfdeee1c19c0316..6f918204d1c69c56f15b91f9e9f6f39fe1e14909 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
  *                       E-mail:
  *                <brain@chatspike.net>
  *               <Craig@chatspike.net>
  * ---------------------------------------------------
  */
 
-#include "inspircd_config.h"
-#include "base.h"
-#include <string>
-#include <map>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netdb.h>
-#include <netinet/in.h>
-#include <unistd.h>
-#include <errno.h>
-#include <time.h>
-#include <vector>
-#include <deque>
-#include <sstream>
-
 #ifndef __CONNECTION_H__
 #define __CONNECTION_H__
 
+#include <time.h>
+#include "inspircd_config.h"
+#include "base.h"
+
 /** Please note: classes serverrec and userrec both inherit from class connection.
  */
 class connection : public Extensible
@@ -43,12 +32,8 @@ class connection : public Extensible
        
        /** Hostname of connection. Not used if this is a serverrec
         */
-       char host[160];
-       
-       /** IP of connection.
-        */
-       char ip[16];
-       
+       char host[65];
+
        /** Stats counter for bytes inbound
         */
        int bytes_in;
@@ -97,10 +82,11 @@ class connection : public Extensible
        
        /** Default constructor
         */
-       connection();
+       connection()
+       {
+               this->fd = -1;
+       }
 };
 
 
 #endif
-
-