2 * ircd-ratbox: A slightly useful ircd.
3 * ircd.h: A header for the ircd startup routines.
5 * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
6 * Copyright (C) 1996-2002 Hybrid Development Team
7 * Copyright (C) 2002-2004 ircd-ratbox development team
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24 * $Id: ircd.h 1851 2006-08-24 17:16:53Z jilles $
27 #ifndef INCLUDED_ircd_h
28 #define INCLUDED_ircd_h
39 int maxclients
; /* max clients allowed */
40 int autoconn
; /* autoconn enabled for all servers? */
42 int floodcount
; /* Number of messages in 1 second */
43 int ident_timeout
; /* timeout for identd lookups */
48 char operstring
[REALLEN
];
49 char adminstring
[REALLEN
];
55 int total
; /* total clients */
56 int invisi
; /* invisible clients */
57 int max_loc
; /* MAX local clients */
58 int max_tot
; /* MAX global clients */
59 unsigned long totalrestartcount
; /* Total client count ever */
62 extern struct SetOptions GlobalSetOptions
; /* defined in ircd.c */
64 extern const char *creation
;
65 extern const char *generation
;
66 extern const char *platform
;
67 extern const char *infotext
[];
68 extern const char *serno
;
69 extern const char *ircd_version
;
70 extern const char *logFileName
;
71 extern const char *pidFileName
;
72 extern int cold_start
;
74 extern int dorehashbans
;
76 extern int kline_queued
;
77 extern int server_state_foreground
;
78 extern int opers_see_all_users
; /* sno_farconnect.so loaded, operspy without
79 accountability, etc */
81 extern struct Client me
;
82 extern rb_dlink_list global_client_list
;
83 extern struct Client
*local
[];
84 extern struct Counter Count
;
86 extern time_t CurrentTime
;
88 extern struct timeval SystemTime
;
89 #define CurrentTime SystemTime.tv_sec
90 extern int default_server_capabs
;
92 extern time_t startup_time
;
95 extern int splitchecking
;
96 extern int split_users
;
97 extern int split_servers
;
100 extern rb_dlink_list unknown_list
;
101 extern rb_dlink_list lclient_list
;
102 extern rb_dlink_list serv_list
;
103 extern rb_dlink_list global_serv_list
;
104 extern rb_dlink_list local_oper_list
;
105 extern rb_dlink_list oper_list
;
106 extern rb_dlink_list dead_list
;
108 extern void get_current_bandwidth(struct Client
*source_p
, struct Client
*target_p
);
110 extern unsigned long get_maxrss(void);
111 extern void set_time(void);
112 extern void charybdis_io_loop(void);
114 extern int testing_conf
;
116 extern struct ev_entry
*check_splitmode_ev
;