diff options
| author | Alexander Barton <alex@barton.de> | 2002-11-26 23:06:51 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2002-11-26 23:06:51 +0000 |
| commit | ecde730ec4de2df76200e3031c6b307bea5f38d0 (patch) | |
| tree | 4c4f481087b4c899660ffa843b5c052cbab23ca4 /src | |
| parent | e553829a59f2f39b1cd6b0fdf559cdc5045abc9f (diff) | |
| download | ngircd-ecde730ec4de2df76200e3031c6b307bea5f38d0.tar.gz ngircd-ecde730ec4de2df76200e3031c6b307bea5f38d0.zip | |
- neue Funktionen: Conn_SetOption(), Conn_UnsetOption(), Conn_Options().
- wenn mit zlib-Support: Conn_InitZip().
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conn.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/ngircd/conn.h b/src/ngircd/conn.h index f2c61643..68712a7c 100644 --- a/src/ngircd/conn.h +++ b/src/ngircd/conn.h @@ -9,7 +9,7 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: conn.h,v 1.22 2002/11/22 17:58:19 alex Exp $ + * $Id: conn.h,v 1.23 2002/11/26 23:06:51 alex Exp $ * * conn.h: Verwaltung aller Netz-Verbindungen ("connections") (Header) */ @@ -19,7 +19,12 @@ #define __conn_h__ -#include <time.h> +#include <time.h> /* wg. time_t, s.u. */ + + +#ifdef USE_ZLIB +#define CONN_ZIP 4 /* Kompression mit zlib */ +#endif typedef INT CONN_ID; @@ -56,6 +61,14 @@ GLOBAL VOID Conn_SetServer PARAMS(( CONN_ID Idx, INT ConfServer )); GLOBAL CONN_ID Conn_First PARAMS(( VOID )); GLOBAL CONN_ID Conn_Next PARAMS(( CONN_ID Idx )); +GLOBAL VOID Conn_SetOption PARAMS(( CONN_ID Idx, INT Option )); +GLOBAL VOID Conn_UnsetOption PARAMS(( CONN_ID Idx, INT Option )); +GLOBAL INT Conn_Options PARAMS(( CONN_ID Idx )); + +#ifdef USE_ZLIB +GLOBAL BOOLEAN Conn_InitZip PARAMS(( CONN_ID Idx )); +#endif + GLOBAL INT Conn_MaxFD; |