]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conn.h
Ignore unknown commands received before the client is registered.
[ngircd-alex.git] / src / ngircd / conn.h
index 5bcfb4d553a693e64edd0fe78e718f2d14171fc2..e1f34f9fafd371933858241a50fdcd3a7678b499 100644 (file)
@@ -8,7 +8,7 @@
  * (at your option) any later version.
  * Please read the file COPYING, README and AUTHORS for more information.
  *
- * $Id: conn.h,v 1.33 2005/03/19 18:43:48 fw Exp $
+ * $Id: conn.h,v 1.35 2005/06/12 16:28:55 alex Exp $
  *
  * Connection management (header)
  */
 #include <time.h>                      /* for time_t, see below */
 
 
-#define CONN_ISCLOSING 1               /* Conn_Close() already called */
+#define CONN_ISCLOSING         1U      /* Conn_Close() already called */
+#define CONN_ISCONNECTING      2U      /* connect() in progress */
 
 #ifdef ZLIB
-#define CONN_ZIP 2                     /* zlib compressed link */
+#define CONN_ZIP               4U      /* zlib compressed link */
 #endif
 
 
@@ -60,15 +61,14 @@ typedef struct _Connection
        int rdatalen;                   /* Length of data in read buffer */
        char wbuf[WRITEBUFFER_LEN];     /* Write buffer */
        int wdatalen;                   /* Length of data in write buffer */
-       time_t starttime;               /* Start time of link */
        time_t lastdata;                /* Last activity */
        time_t lastping;                /* Last PING */
        time_t lastprivmsg;             /* Last PRIVMSG */
        time_t delaytime;               /* Ignore link ("penalty") */
-       long bytes_in, bytes_out; /* Received and sent bytes */
-       long msg_in, msg_out;     /* Received and sent IRC messages */
+       long bytes_in, bytes_out;       /* Received and sent bytes */
+       long msg_in, msg_out;           /* Received and sent IRC messages */
        int flag;                       /* Flag (see "irc-write" module) */
-       int options;                    /* Link options */
+       UINT16 options;                 /* Link options / connection state */
 #ifdef ZLIB
        ZIPDATA zip;                    /* Compression information */
 #endif  /* ZLIB */