Blame


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