* (at your option) any later version.
* Please read the file COPYING, README and AUTHORS for more information.
*
- * $Id: conn.h,v 1.29 2002/12/30 17:14:59 alex Exp $
+ * $Id: conn.h,v 1.32 2003/12/26 15:55:07 alex Exp $
*
* Connection management (header)
*/
#define __conn_h__
-#include <time.h> /* wg. time_t, s.u. */
+#include <time.h> /* fro time_t, see below */
-#ifdef USE_ZLIB
-#define CONN_ZIP 4 /* Kompression mit zlib */
+#define CONN_ISCLOSING 1 /* Conn_Close() already called */
+
+#ifdef ZLIB
+#define CONN_ZIP 2 /* zlib compressed link */
#endif
#include "defines.h"
#include "resolve.h"
-#ifdef USE_ZLIB
+#ifdef ZLIB
#include <zlib.h>
typedef struct _ZipData
{
INT wdatalen; /* Length of data in write buffer (uncompressed) */
LONG bytes_in, bytes_out; /* Counter for statistics (uncompressed!) */
} ZIPDATA;
-#endif /* USE_ZLIB */
+#endif /* ZLIB */
typedef struct _Connection
{
LONG msg_in, msg_out; /* Received and sent IRC messages */
INT flag; /* Flag (see "irc-write" module) */
INT options; /* Link options */
-#ifdef USE_ZLIB
+#ifdef ZLIB
ZIPDATA zip; /* Compression information */
-#endif /* USE_ZLIB */
+#endif /* ZLIB */
} CONNECTION;
GLOBAL CONNECTION *My_Connections;
GLOBAL VOID Conn_Close PARAMS(( CONN_ID Idx, CHAR *LogMsg, CHAR *FwdMsg, BOOLEAN InformClient ));
+GLOBAL VOID Conn_SyncServerStruct PARAMS(( VOID ));
GLOBAL INT Conn_MaxFD;