-/*
-
-*/
+/* +------------------------------------+
+ * | 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>
#define STATE_SYNC 2
#define STATE_NOAUTH_INBOUND 3
#define STATE_NOAUTH_OUTBOUND 4
+#define STATE_SERVICES 5
/** Each connection has one or more of these
* each represents ONE outbound connection to another ircd
* 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
};
-class packet
+/** Class packet is deprecated.
+ * This declaration is preserved here to maintain documentation only.
+ */
+class packet : public classbase
{
- /** Class packet is deprecated.
- * This declaration is preserved here to maintain documentation only.
- */
};
/** 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
/** IP of connection. Reserved for future use.
*/
- long ip;
+ char ip[32];
/** Inbuf of connection. Only used for userrec
*/
/** 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
*/