ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/ircd.h
Revision: 1666
Committed: Sun Nov 18 17:03:18 2012 UTC (12 years, 9 months ago) by michael
Content type: text/x-chdr
File size: 3887 byte(s)
Log Message:
- Cleanup unused header file includes
- Fixed minor compile warning in conf.c

File Contents

# User Rev Content
1 adx 30 /*
2     * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3     * ircd.h: A header for the ircd startup routines.
4     *
5     * Copyright (C) 2002 by the past and present ircd coders, and others.
6     *
7     * This program is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (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
20     * USA
21     *
22 knight 31 * $Id$
23 adx 30 */
24    
25     #ifndef INCLUDED_ircd_h
26     #define INCLUDED_ircd_h
27    
28     #include "ircd_defs.h"
29 michael 912 #include "config.h"
30 adx 30
31 michael 1666 //struct Client;
32 adx 30
33     struct SetOptions
34     {
35     int autoconn; /* autoconn enabled for all servers? */
36     int floodcount; /* Number of messages in 1 second */
37     int joinfloodtime;
38     int joinfloodcount;
39     int ident_timeout; /* timeout for identd lookups */
40     int spam_num;
41     int spam_time;
42     };
43    
44 michael 896 /*
45     * statistics structures
46     */
47 michael 1011 struct ServerStatistics
48     {
49 michael 1143 uint64_t is_cbs; /* bytes sent to clients */
50     uint64_t is_cbr; /* bytes received from clients */
51     uint64_t is_sbs; /* bytes sent to servers */
52     uint64_t is_sbr; /* bytes received from servers */
53 michael 1011
54 michael 1143 time_t is_cti; /* time spent connected by clients */
55     time_t is_sti; /* time spent connected by servers */
56 michael 948
57 michael 1143 unsigned int is_cl; /* number of client connections */
58     unsigned int is_sv; /* number of server connections */
59     unsigned int is_ni; /* connection but no idea who it was */
60     unsigned int is_ac; /* connections accepted */
61     unsigned int is_ref; /* accepts refused */
62 michael 896 unsigned int is_unco; /* unknown commands */
63     unsigned int is_wrdi; /* command going in wrong direction */
64     unsigned int is_unpf; /* unknown prefix */
65     unsigned int is_empt; /* empty message */
66 michael 1143 unsigned int is_num; /* numeric message */
67 michael 896 unsigned int is_kill; /* number of kills generated on collisions */
68     unsigned int is_asuc; /* successful auth requests */
69     unsigned int is_abad; /* bad auth requests */
70     };
71    
72     extern struct ServerStatistics ServerStats;
73    
74    
75 adx 30 struct Counter
76     {
77 michael 948 uint64_t totalrestartcount; /* Total client count ever */
78 michael 1143 unsigned int myserver; /* my servers */
79     unsigned int oper; /* Opers */
80     unsigned int local; /* Local Clients */
81     unsigned int total; /* total clients */
82     unsigned int invisi; /* invisible clients */
83     unsigned int max_loc; /* MAX local clients */
84     unsigned int max_tot; /* MAX global clients */
85     unsigned int max_loc_con; /* MAX local connection count (clients + server) */
86     unsigned int max_loc_cli; /* XXX This is redundant - Max local client count */
87 adx 30 };
88    
89     extern struct SetOptions GlobalSetOptions; /* defined in ircd.c */
90    
91     struct ServerState_t
92     {
93     int foreground;
94     };
95    
96     extern struct ServerState_t server_state;
97    
98     extern char **myargv;
99     extern const char *infotext[];
100     extern const char *serno;
101     extern const char *ircd_version;
102     extern const char *logFileName;
103     extern const char *pidFileName;
104     extern int dorehash;
105     extern int doremotd;
106     extern struct Counter Count;
107     extern struct timeval SystemTime;
108     #define CurrentTime SystemTime.tv_sec
109     extern int default_server_capabs;
110 michael 1013 extern unsigned int splitmode;
111     extern unsigned int splitchecking;
112     extern unsigned int split_users;
113 adx 30 extern unsigned int split_servers;
114    
115     extern int rehashed_klines;
116     extern void set_time(void);
117     #endif

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision