ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/ircd.h
(Generate patch)

Comparing:
ircd-hybrid-7.3/include/ircd.h (file contents), Revision 1029 by michael, Sun Nov 8 13:10:50 2009 UTC vs.
ircd-hybrid/trunk/include/ircd.h (file contents), Revision 7858 by michael, Tue Nov 8 20:06:16 2016 UTC

# Line 1 | Line 1
1   /*
2 < *  ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 < *  ircd.h: A header for the ircd startup routines.
2 > *  ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3   *
4 < *  Copyright (C) 2002 by the past and present ircd coders, and others.
4 > *  Copyright (c) 1997-2016 ircd-hybrid development team
5   *
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
# Line 16 | Line 15
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 < *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
18 > *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19   *  USA
21 *
22 *  $Id$
20   */
21  
22 + /*! \file ircd.h
23 + * \brief A header for the ircd startup routines.
24 + * \version $Id$
25 + */
26 +
27 +
28   #ifndef INCLUDED_ircd_h
29   #define INCLUDED_ircd_h
30  
31   #include "ircd_defs.h"
32   #include "config.h"
30 #include "memory.h"
31 #include "list.h"
33  
33 struct Client;
34  
35   struct SetOptions
36   {
37 <  int autoconn;      /* autoconn enabled for all servers? */
38 <  int idletime;
39 <  int floodcount;    /* Number of messages in 1 second    */
40 <  /* XXX for join flood catching - Dianora */
41 <  int joinfloodtime;
42 <  int joinfloodcount;
43 <  /* XXX */
44 <  int rejecttime;
45 <  int ident_timeout; /* timeout for identd lookups        */
37 >  unsigned int maxclients;
38 >  unsigned int autoconn;      /* autoconn enabled for all servers? */
39 >  int floodcount;  /* Number of messages in 'floodtime' seconds */
40 >  int floodtime;
41 >  unsigned int joinfloodtime;
42 >  unsigned int joinfloodcount;
43 >  unsigned int ident_timeout; /* timeout for identd lookups        */
44    int spam_num;
45 <  int spam_time;
45 >  unsigned int spam_time;
46   };
47  
48   /*
# Line 52 | Line 50 | struct SetOptions
50   */
51   struct ServerStatistics
52   {
53 <  uint64_t        is_cbs; /* bytes sent to clients */
54 <  uint64_t        is_cbr; /* bytes received from clients */
55 <  uint64_t        is_sbs; /* bytes sent to servers */
56 <  uint64_t        is_sbr; /* bytes received from servers */
57 <
58 <  time_t          is_cti; /* time spent connected by clients */
59 <  time_t          is_sti; /* time spent connected by servers */
60 <
61 <  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 */
53 >  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 >
58 >  uintmax_t        is_cti;  /* time spent connected by clients */
59 >  uintmax_t        is_sti;  /* time spent connected by servers */
60 >
61 >  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    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 <  unsigned int    is_num; /* numeric message */
70 >  unsigned int    is_num;  /* numeric message */
71    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   };
75  
78 extern struct ServerStatistics ServerStats;
79
80
76   struct Counter
77   {
78 <  uint64_t totalrestartcount; /* Total client count ever */
79 <  unsigned int myserver; /* my servers          */
80 <  unsigned int oper;     /* Opers               */
81 <  unsigned int local;    /* Local Clients       */
82 <  unsigned int total;    /* total clients       */
83 <  unsigned int invisi;   /* invisible clients   */
84 <  unsigned int max_loc;  /* MAX local clients   */
85 <  unsigned int max_tot;  /* MAX global clients  */
78 >  uintmax_t totalrestartcount; /* Total client count ever */
79 >  unsigned int myserver;      /* my servers          */
80 >  unsigned int oper;          /* Opers               */
81 >  unsigned int local;         /* Local Clients       */
82 >  unsigned int total;         /* total clients       */
83 >  unsigned int invisi;        /* invisible clients   */
84 >  unsigned int max_loc;       /* MAX local clients   */
85 >  unsigned int max_tot;       /* MAX global clients  */
86 >  unsigned int max_loc_con;   /* MAX local connection count (clients + server) */
87 >  unsigned int max_loc_cli;   /* XXX This is redundant - Max local client count */
88   };
89  
93 extern struct SetOptions GlobalSetOptions; /* defined in ircd.c */
94
90   struct ServerState_t
91   {
92 <  int foreground;
92 >  unsigned int foreground;
93 > };
94 >
95 > struct ServerTime
96 > {
97 >  uintmax_t tv_sec, tv_usec;
98   };
99  
100 extern struct ServerState_t server_state;
100  
101 + #ifdef HAVE_LIBGEOIP
102 + extern GeoIP *GeoIPv4_ctx;
103 + extern GeoIP *GeoIPv6_ctx;
104 + #endif
105   extern char **myargv;
103 extern char ircd_platform[PLATFORMLEN];
104 extern char *get_ircd_platform(char *);
106   extern const char *infotext[];
107   extern const char *serno;
108   extern const char *ircd_version;
109   extern const char *logFileName;
110   extern const char *pidFileName;
111 < extern int dorehash;
112 < extern int doremotd;
111 > extern unsigned int dorehash;
112 > extern unsigned int doremotd;
113   extern struct Counter Count;
114 < extern struct timeval SystemTime;
114 > extern struct ServerStatistics ServerStats;
115 > extern struct SetOptions GlobalSetOptions;
116 > extern struct ServerState_t server_state;
117 > extern struct event event_write_links_file;
118 > extern struct ServerTime SystemTime;
119   #define CurrentTime SystemTime.tv_sec
120 < extern int default_server_capabs;
116 < #ifdef HAVE_LIBCRYPTO
117 < extern int bio_spare_fd;
118 < #endif /* HAVE_LIBCRYPTO */
119 <
120 < extern unsigned int splitmode;
121 < extern unsigned int splitchecking;
122 < extern unsigned int split_users;
123 < extern unsigned int split_servers;
124 <
125 < extern dlink_list unknown_list;       /* unknown clients ON this server only        */
126 < extern dlink_list local_client_list;  /* local clients only ON this server          */
127 < extern dlink_list serv_list;          /* local servers to this server ONLY          */
128 < extern dlink_list global_serv_list;   /* global servers on the network              */
129 < extern dlink_list oper_list;          /* our opers, duplicated in local_client_list */
130 < extern int rehashed_klines;
120 >
121   extern void set_time(void);
122   #endif

Comparing:
ircd-hybrid-7.3/include/ircd.h (property svn:keywords), Revision 1029 by michael, Sun Nov 8 13:10:50 2009 UTC vs.
ircd-hybrid/trunk/include/ircd.h (property svn:keywords), Revision 7858 by michael, Tue Nov 8 20:06:16 2016 UTC

# Line 1 | Line 1
1 < Id Revision
1 > Id

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)