/[cvs]/eggdrop1.9/src/traffic.h
ViewVC logotype

Contents of /eggdrop1.9/src/traffic.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download) (as text)
Tue Dec 16 21:45:35 2003 UTC (15 years, 10 months ago) by wcc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
File MIME type: text/x-csrc
FILE REMOVED
* src/ cleanups.

1 /*
2 * traffic.h --
3 */
4 /*
5 * Copyright (C) 2002, 2003, 2004 Eggheads Development Team
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 */
21 /*
22 * $Id: traffic.h,v 1.5 2003/12/11 00:49:11 wcc Exp $
23 */
24
25 #ifndef _EGG_TRAFFIC_H
26 #define _EGG_TRAFFIC_H
27
28 #include "main.h" /* FILE */
29 #include "egg.h" /* dcc_t */
30
31 typedef struct {
32 struct {
33 unsigned long irc;
34 unsigned long bn;
35 unsigned long dcc;
36 unsigned long filesys;
37 unsigned long trans;
38 unsigned long unknown;
39 } in_total, in_today, out_total, out_today;
40 } egg_traffic_t;
41
42 extern egg_traffic_t traffic;
43
44 /* init our traffic stats (register hooks, ...)
45 */
46 void traffic_init();
47
48 /* resets our traffic stats
49 */
50 void traffic_reset();
51
52 /* update incoming traffic stats (used in main.c loop)
53 */
54 void traffic_update_in(struct dcc_table *type, int size);
55
56 /* update outgoing traffic stats
57 */
58 void traffic_update_out(struct dcc_table *type, int size);
59
60 /* traffic dcc command
61 */
62 int cmd_traffic(struct userrec *u, int idx, char *par);
63
64 #endif /* !_EGG_TRAFFIC_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23