]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/connection.h
Removed deprecated class 'packet'
[user/henk/code/inspircd.git] / include / connection.h
index 12d6dc754911b4178b1e13c6bb810ae5ceacc24d..ed88d83f7aa1d676fefb7566169dc481ca9e1909 100644 (file)
@@ -1,13 +1,25 @@
-/*
-
-*/
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ *                       E-mail:
+ *                <brain@chatspike.net>
+ *               <Craig@chatspike.net>
+ *     
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
 
 #include "inspircd_config.h"
 #include "base.h"
 #include <string>
 #include <map>
-#include <sys/socket.h>
 #include <sys/types.h>
+#include <sys/socket.h>
 #include <netdb.h>
 #include <netinet/in.h>
 #include <unistd.h>
@@ -38,7 +50,7 @@
  * connection(s) relating to the server you want information on.
  * The core and module API provide functions for this.
  */
-class ircd_connector : public classbase
+class ircd_connector : public Extensible
 {
  private:
        /** Sockaddr of the outbound ip and port
@@ -149,16 +161,9 @@ class ircd_connector : public classbase
 };
 
 
-/** Class packet is deprecated.
- * This declaration is preserved here to maintain documentation only.
- */
-class packet : public classbase
-{
-};
-
 /** Please note: classes serverrec and userrec both inherit from class connection.
  */
-class connection : public classbase
+class connection : public Extensible
 {
  public:
        /** File descriptor of the connection
@@ -171,7 +176,7 @@ class connection : public classbase
        
        /** IP of connection. Reserved for future use.
         */
-       long ip;
+       char ip[32];
        
        /** Inbuf of connection. Only used for userrec
         */
@@ -229,7 +234,7 @@ class connection : public classbase
        
        /** Unused, will be removed in a future alpha/beta
         */
-       char internal_addr[1024];
+       char internal_addr[MAXBUF];
        
        /** Unused, will be removed in a future alpha/beta
         */