ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/ircd.h
Revision: 8314
Committed: Wed Feb 28 17:47:23 2018 UTC (7 years, 5 months ago) by michael
Content type: text/x-chdr
File size: 3671 byte(s)
Log Message:
- Remove experimental libgeoip support

File Contents

# User Rev Content
1 adx 30 /*
2 michael 2865 * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3 adx 30 *
4 michael 8279 * Copyright (c) 1997-2018 ircd-hybrid development team
5 adx 30 *
6     * This program is free software; you can redistribute it and/or modify
7     * it under the terms of the GNU General Public License as published by
8     * the Free Software Foundation; either version 2 of the License, or
9     * (at your option) any later version.
10     *
11     * This program is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14     * GNU General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with this program; if not, write to the Free Software
18 michael 4565 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19 adx 30 * USA
20     */
21    
22 michael 2865 /*! \file ircd.h
23     * \brief A header for the ircd startup routines.
24     * \version $Id$
25     */
26    
27    
28 adx 30 #ifndef INCLUDED_ircd_h
29     #define INCLUDED_ircd_h
30    
31     #include "ircd_defs.h"
32 michael 912 #include "config.h"
33 adx 30
34    
35 michael 5602 struct SetOptions
36 adx 30 {
37 michael 5489 unsigned int maxclients;
38 michael 3902 unsigned int autoconn; /* autoconn enabled for all servers? */
39 michael 7862 unsigned int floodcount; /* Number of messages in 'floodtime' seconds */
40     unsigned int floodtime;
41 michael 3902 unsigned int joinfloodtime;
42     unsigned int joinfloodcount;
43     unsigned int ident_timeout; /* timeout for identd lookups */
44 michael 3923 int spam_num;
45 michael 3902 unsigned int spam_time;
46 michael 5602 };
47 adx 30
48 michael 896 /*
49     * statistics structures
50     */
51 michael 1011 struct ServerStatistics
52     {
53 michael 6782 uintmax_t is_cbs; /* bytes sent to clients */
54     uintmax_t is_cbr; /* bytes received from clients */
55     uintmax_t is_sbs; /* bytes sent to servers */
56     uintmax_t is_sbr; /* bytes received from servers */
57 michael 1011
58 michael 7330 uintmax_t is_cti; /* time spent connected by clients */
59     uintmax_t is_sti; /* time spent connected by servers */
60 michael 948
61 michael 1143 unsigned int is_cl; /* number of client connections */
62     unsigned int is_sv; /* number of server connections */
63     unsigned int is_ni; /* connection but no idea who it was */
64     unsigned int is_ac; /* connections accepted */
65     unsigned int is_ref; /* accepts refused */
66 michael 896 unsigned int is_unco; /* unknown commands */
67     unsigned int is_wrdi; /* command going in wrong direction */
68     unsigned int is_unpf; /* unknown prefix */
69     unsigned int is_empt; /* empty message */
70 michael 1143 unsigned int is_num; /* numeric message */
71 michael 896 unsigned int is_kill; /* number of kills generated on collisions */
72     unsigned int is_asuc; /* successful auth requests */
73     unsigned int is_abad; /* bad auth requests */
74 michael 5602 };
75 michael 896
76 michael 5602 struct Counter
77 adx 30 {
78 michael 6782 uintmax_t totalrestartcount; /* Total client count ever */
79 michael 1143 unsigned int oper; /* Opers */
80     unsigned int invisi; /* invisible clients */
81     unsigned int max_loc; /* MAX local clients */
82     unsigned int max_tot; /* MAX global clients */
83     unsigned int max_loc_con; /* MAX local connection count (clients + server) */
84 michael 5602 };
85 adx 30
86 michael 5602 struct ServerState_t
87 adx 30 {
88 michael 3902 unsigned int foreground;
89 michael 5614 };
90 adx 30
91 michael 7330 struct ServerTime
92     {
93     uintmax_t tv_sec, tv_usec;
94     };
95 adx 30
96 michael 7330
97 adx 30 extern char **myargv;
98     extern const char *infotext[];
99     extern const char *serno;
100     extern const char *ircd_version;
101     extern const char *logFileName;
102     extern const char *pidFileName;
103 michael 5462 extern unsigned int dorehash;
104     extern unsigned int doremotd;
105 michael 5602 extern struct Counter Count;
106     extern struct ServerStatistics ServerStats;
107 michael 5614 extern struct SetOptions GlobalSetOptions;
108 michael 5602 extern struct ServerState_t server_state;
109 michael 4094 extern struct event event_write_links_file;
110 michael 7330 extern struct ServerTime SystemTime;
111 adx 30 #define CurrentTime SystemTime.tv_sec
112    
113     extern void set_time(void);
114     #endif

Properties

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