ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/include/ircd.h
Revision: 1549
Committed: Mon Oct 1 18:11:11 2012 UTC (12 years, 10 months ago) by michael
Content type: text/x-chdr
File size: 4358 byte(s)
Log Message:
- Removed general::kline_with_reason configuration options. It's now enabled
  by default
- Removed remnants of the broken reject holding code

File Contents

# Content
1 /*
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 * $Id$
23 */
24
25 #ifndef INCLUDED_ircd_h
26 #define INCLUDED_ircd_h
27
28 #include "ircd_defs.h"
29 #include "config.h"
30 #include "memory.h"
31 #include "list.h"
32
33 struct Client;
34
35 struct SetOptions
36 {
37 int autoconn; /* autoconn enabled for all servers? */
38 int floodcount; /* Number of messages in 1 second */
39 int joinfloodtime;
40 int joinfloodcount;
41 int ident_timeout; /* timeout for identd lookups */
42 int spam_num;
43 int spam_time;
44 };
45
46 /*
47 * statistics structures
48 */
49 struct ServerStatistics
50 {
51 uint64_t is_cbs; /* bytes sent to clients */
52 uint64_t is_cbr; /* bytes received from clients */
53 uint64_t is_sbs; /* bytes sent to servers */
54 uint64_t is_sbr; /* bytes received from servers */
55
56 time_t is_cti; /* time spent connected by clients */
57 time_t is_sti; /* time spent connected by servers */
58
59 unsigned int is_cl; /* number of client connections */
60 unsigned int is_sv; /* number of server connections */
61 unsigned int is_ni; /* connection but no idea who it was */
62 unsigned int is_ac; /* connections accepted */
63 unsigned int is_ref; /* accepts refused */
64 unsigned int is_unco; /* unknown commands */
65 unsigned int is_wrdi; /* command going in wrong direction */
66 unsigned int is_unpf; /* unknown prefix */
67 unsigned int is_empt; /* empty message */
68 unsigned int is_num; /* numeric message */
69 unsigned int is_kill; /* number of kills generated on collisions */
70 unsigned int is_asuc; /* successful auth requests */
71 unsigned int is_abad; /* bad auth requests */
72 };
73
74 extern struct ServerStatistics ServerStats;
75
76
77 struct Counter
78 {
79 uint64_t totalrestartcount; /* Total client count ever */
80 unsigned int myserver; /* my servers */
81 unsigned int oper; /* Opers */
82 unsigned int local; /* Local Clients */
83 unsigned int total; /* total clients */
84 unsigned int invisi; /* invisible clients */
85 unsigned int max_loc; /* MAX local clients */
86 unsigned int max_tot; /* MAX global clients */
87 unsigned int max_loc_con; /* MAX local connection count (clients + server) */
88 unsigned int max_loc_cli; /* XXX This is redundant - Max local client count */
89 };
90
91 extern struct SetOptions GlobalSetOptions; /* defined in ircd.c */
92
93 struct ServerState_t
94 {
95 int foreground;
96 };
97
98 extern struct ServerState_t server_state;
99
100 extern char **myargv;
101 extern const char *infotext[];
102 extern const char *serno;
103 extern const char *ircd_version;
104 extern const char *logFileName;
105 extern const char *pidFileName;
106 extern int dorehash;
107 extern int doremotd;
108 extern struct Counter Count;
109 extern struct timeval SystemTime;
110 #define CurrentTime SystemTime.tv_sec
111 extern int default_server_capabs;
112 extern unsigned int splitmode;
113 extern unsigned int splitchecking;
114 extern unsigned int split_users;
115 extern unsigned int split_servers;
116
117 extern dlink_list unknown_list; /* unknown clients ON this server only */
118 extern dlink_list local_client_list; /* local clients only ON this server */
119 extern dlink_list serv_list; /* local servers to this server ONLY */
120 extern dlink_list global_serv_list; /* global servers on the network */
121 extern dlink_list oper_list; /* our opers, duplicated in local_client_list */
122 extern int rehashed_klines;
123 extern void set_time(void);
124 #endif

Properties

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