X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fconn-func.h;h=e762e5c3c9561552cc42737d7d8e600fc5b05d59;hb=cb0d594e6184694f8563f1e3116e3aac34606a86;hp=f0ed7f38b01b5aa8e95124f23c596ac7c2fb55fb;hpb=8adff5922376676c2eeb49de1cbab86cc345b887;p=ngircd.git diff --git a/src/ngircd/conn-func.h b/src/ngircd/conn-func.h index f0ed7f38..e762e5c3 100644 --- a/src/ngircd/conn-func.h +++ b/src/ngircd/conn-func.h @@ -8,7 +8,7 @@ * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. * - * $Id: conn-func.h,v 1.2 2005/03/19 18:43:48 fw Exp $ + * $Id: conn-func.h,v 1.7 2007/10/04 15:03:56 alex Exp $ * * Connection management: Global functions (header) */ @@ -27,11 +27,12 @@ GLOBAL void Conn_UpdateIdle PARAMS(( CONN_ID Idx )); +GLOBAL time_t Conn_GetSignon PARAMS((CONN_ID Idx)); GLOBAL time_t Conn_GetIdle PARAMS(( CONN_ID Idx )); GLOBAL time_t Conn_LastPing PARAMS(( CONN_ID Idx )); GLOBAL time_t Conn_StartTime PARAMS(( CONN_ID Idx )); -GLOBAL int Conn_SendQ PARAMS(( CONN_ID Idx )); -GLOBAL int Conn_RecvQ PARAMS(( CONN_ID Idx )); +GLOBAL size_t Conn_SendQ PARAMS(( CONN_ID Idx )); +GLOBAL size_t Conn_RecvQ PARAMS(( CONN_ID Idx )); GLOBAL long Conn_SendMsg PARAMS(( CONN_ID Idx )); GLOBAL long Conn_RecvMsg PARAMS(( CONN_ID Idx )); GLOBAL long Conn_SendBytes PARAMS(( CONN_ID Idx )); @@ -47,13 +48,14 @@ GLOBAL void Conn_SetFlag PARAMS(( CONN_ID Idx, int Flag )); 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 )); +GLOBAL UINT16 Conn_Options PARAMS(( CONN_ID Idx )); GLOBAL void Conn_ResetWCounter PARAMS(( void )); GLOBAL long Conn_WCounter PARAMS(( void )); +#define Conn_OPTION_ADD( x, opt ) ( (x)->options |= (opt) ) +#define Conn_OPTION_DEL( x, opt ) ( (x)->options &= ~(opt) ) +#define Conn_OPTION_ISSET( x, opt ) ( ((x)->options & (opt)) != 0) #endif