[BACK]Return to conn-func.h CVS log [TXT][DIR] Up to [local] / ircnowd / src / ngircd

Annotation of ircnowd/src/ngircd/conn-func.h, Revision 1.1

1.1     ! tomglok     1: /*
        !             2:  * ngIRCd -- The Next Generation IRC Daemon
        !             3:  * Copyright (c)2001-2008 Alexander Barton (alex@barton.de)
        !             4:  *
        !             5:  * This program is free software; you can redistribute it and/or modify
        !             6:  * it under the terms of the GNU General Public License as published by
        !             7:  * the Free Software Foundation; either version 2 of the License, or
        !             8:  * (at your option) any later version.
        !             9:  * Please read the file COPYING, README and AUTHORS for more information.
        !            10:  */
        !            11:
        !            12: #ifndef __conn_func_h__
        !            13: #define __conn_func_h__
        !            14:
        !            15: /**
        !            16:  * @file
        !            17:  * Connection management: Global functions (header)
        !            18:  */
        !            19:
        !            20: /* Include the header conn.h if this header is _not_ included by any module
        !            21:  * containing connection handling functions. So other modules must only
        !            22:  * include this conn-func.h header. */
        !            23: #ifndef CONN_MODULE
        !            24: #include "conn.h"
        !            25: #else
        !            26: #define Conn_OPTION_ADD( x, opt )   ( (x)->options |= (opt) )
        !            27: #define Conn_OPTION_DEL( x, opt )   ( (x)->options &= ~(opt) )
        !            28: #define Conn_OPTION_ISSET( x, opt ) ( ((x)->options & (opt)) != 0)
        !            29: #endif
        !            30:
        !            31:
        !            32: GLOBAL void Conn_UpdateIdle PARAMS((CONN_ID Idx));
        !            33: GLOBAL void Conn_UpdatePing PARAMS((CONN_ID Idx, time_t TimeStamp));
        !            34:
        !            35: GLOBAL time_t Conn_GetSignon PARAMS((CONN_ID Idx));
        !            36: GLOBAL time_t Conn_GetIdle PARAMS(( CONN_ID Idx ));
        !            37: GLOBAL time_t Conn_LastPing PARAMS(( CONN_ID Idx ));
        !            38: GLOBAL time_t Conn_StartTime PARAMS(( CONN_ID Idx ));
        !            39: GLOBAL size_t Conn_SendQ PARAMS(( CONN_ID Idx ));
        !            40: GLOBAL size_t Conn_RecvQ PARAMS(( CONN_ID Idx ));
        !            41: GLOBAL long Conn_SendMsg PARAMS(( CONN_ID Idx ));
        !            42: GLOBAL long Conn_RecvMsg PARAMS(( CONN_ID Idx ));
        !            43: GLOBAL long Conn_SendBytes PARAMS(( CONN_ID Idx ));
        !            44: GLOBAL long Conn_RecvBytes PARAMS(( CONN_ID Idx ));
        !            45: GLOBAL const char *Conn_IPA PARAMS(( CONN_ID Idx ));
        !            46:
        !            47: GLOBAL void Conn_SetPenalty PARAMS(( CONN_ID Idx, time_t Seconds ));
        !            48:
        !            49: GLOBAL void Conn_ClearFlags PARAMS(( void ));
        !            50: GLOBAL int Conn_Flag PARAMS(( CONN_ID Idx ));
        !            51: GLOBAL void Conn_SetFlag PARAMS(( CONN_ID Idx, int Flag ));
        !            52:
        !            53: GLOBAL CONN_ID Conn_First PARAMS(( void ));
        !            54: GLOBAL CONN_ID Conn_Next PARAMS(( CONN_ID Idx ));
        !            55:
        !            56: GLOBAL UINT16 Conn_Options PARAMS(( CONN_ID Idx ));
        !            57: GLOBAL void Conn_SetOption PARAMS(( CONN_ID Idx, int Option ));
        !            58:
        !            59: GLOBAL void Conn_ResetWCounter PARAMS(( void ));
        !            60: GLOBAL long Conn_WCounter PARAMS(( void ));
        !            61:
        !            62: #endif
        !            63:
        !            64:
        !            65: /* -eof- */

CVSweb