Blob


1 /*
2 * ngIRCd -- The Next Generation IRC Daemon
3 * Copyright (c)2001,2002 by 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 * $Id: conn-func.h,v 1.1 2002/12/30 17:14:28 alex Exp $
12 *
13 * Connection management: Global functions (header)
14 */
17 #ifndef __conn_func_h__
18 #define __conn_func_h__
21 /* Include the header conn.h if this header is _not_ included by any module
22 * containing connection handling functions. So other modules must only
23 * include this conn-func.h header. */
24 #ifndef CONN_MODULE
25 # include "conn.h"
26 #endif
29 GLOBAL VOID Conn_UpdateIdle PARAMS(( CONN_ID Idx ));
30 GLOBAL time_t Conn_GetIdle PARAMS(( CONN_ID Idx ));
31 GLOBAL time_t Conn_LastPing PARAMS(( CONN_ID Idx ));
32 GLOBAL time_t Conn_StartTime PARAMS(( CONN_ID Idx ));
33 GLOBAL INT Conn_SendQ PARAMS(( CONN_ID Idx ));
34 GLOBAL INT Conn_RecvQ PARAMS(( CONN_ID Idx ));
35 GLOBAL LONG Conn_SendMsg PARAMS(( CONN_ID Idx ));
36 GLOBAL LONG Conn_RecvMsg PARAMS(( CONN_ID Idx ));
37 GLOBAL LONG Conn_SendBytes PARAMS(( CONN_ID Idx ));
38 GLOBAL LONG Conn_RecvBytes PARAMS(( CONN_ID Idx ));
40 GLOBAL VOID Conn_SetPenalty PARAMS(( CONN_ID Idx, time_t Seconds ));
41 GLOBAL VOID Conn_ResetPenalty PARAMS(( CONN_ID Idx ));
43 GLOBAL VOID Conn_ClearFlags PARAMS(( VOID ));
44 GLOBAL INT Conn_Flag PARAMS(( CONN_ID Idx ));
45 GLOBAL VOID Conn_SetFlag PARAMS(( CONN_ID Idx, INT Flag ));
47 GLOBAL CONN_ID Conn_First PARAMS(( VOID ));
48 GLOBAL CONN_ID Conn_Next PARAMS(( CONN_ID Idx ));
50 GLOBAL VOID Conn_SetOption PARAMS(( CONN_ID Idx, INT Option ));
51 GLOBAL VOID Conn_UnsetOption PARAMS(( CONN_ID Idx, INT Option ));
52 GLOBAL INT Conn_Options PARAMS(( CONN_ID Idx ));
54 GLOBAL VOID Conn_ResetWCounter PARAMS(( VOID ));
55 GLOBAL LONG Conn_WCounter PARAMS(( VOID ));
58 #endif
61 /* -eof- */