/[svn]/ircd-hybrid-8/include/s_serv.h
ViewVC logotype

Contents of /ircd-hybrid-8/include/s_serv.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1472 - (show annotations)
Sun Jul 22 12:03:18 2012 UTC (8 years ago) by michael
File MIME type: text/x-csrc
File size: 4237 byte(s)
- remove CAP_TB
- add proper TS6 support to TBURST

1 /*
2 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 * s_serv.h: A header for the server functions.
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_serv_h
26 #define INCLUDED_serv_h
27 #include "config.h"
28
29 struct ConfItem;
30
31 /*
32 * number of seconds to wait after server starts up, before
33 * starting try_connections()
34 * TOO SOON and you can nick collide like crazy.
35 */
36 #define STARTUP_CONNECTIONS_TIME 60
37
38 struct Client;
39 struct AccessItem;
40 struct Channel;
41
42 /* Capabilities */
43 struct Capability
44 {
45 dlink_node node;
46 char *name; /* name of capability */
47 unsigned int cap; /* mask value */
48 };
49
50 #define CAP_CAP 0x00000001 /* received a CAP to begin with */
51 #define CAP_QS 0x00000002 /* Can handle quit storm removal */
52 #define CAP_EX 0x00000004 /* Can do channel +e exemptions */
53 #define CAP_CHW 0x00000008 /* Can do channel wall @# */
54 #define CAP_IE 0x00000010 /* Can do invite exceptions */
55 #define CAP_EOB 0x00000020 /* Can do EOB message */
56 #define CAP_KLN 0x00000040 /* Can do KLINE message */
57 #define CAP_GLN 0x00000080 /* Can do GLINE message */
58 #define CAP_TS6 0x00000100 /* Can do TS6 */
59 #define CAP_KNOCK 0x00000200 /* supports KNOCK */
60 #define CAP_UNKLN 0x00000400 /* Can do UNKLINE message */
61 #define CAP_CLUSTER 0x00000800 /* supports server clustering */
62 #define CAP_ENCAP 0x00001000 /* supports ENCAP message */
63 #define CAP_HOPS 0x00002000 /* supports HALFOPS */
64 #define CAP_TBURST 0x00004000 /* supports TBURST */
65 #define CAP_SVS 0x00008000 /* supports services */
66 #define CAP_DLN 0x00010000 /* Can do DLINE message */
67 #define CAP_UNDLN 0x00020000 /* Can do UNDLINE message */
68
69 /*
70 * Capability macros.
71 */
72 #define IsCapable(x, cap) ((x)->localClient->caps & (cap))
73 #define SetCapable(x, cap) ((x)->localClient->caps |= (cap))
74 #define ClearCap(x, cap) ((x)->localClient->caps &= ~(cap))
75
76
77 /*
78 * return values for hunt_server()
79 */
80 #define HUNTED_NOSUCH (-1) /* if the hunted server is not found */
81 #define HUNTED_ISME 0 /* if this server should execute the command */
82 #define HUNTED_PASS 1 /* if message passed onwards successfully */
83
84 extern int valid_servname(const char *);
85 extern int check_server(const char *, struct Client *);
86 extern int hunt_server(struct Client *, struct Client *,
87 const char *, int, int, char **);
88 extern void add_capability(const char *, int, int);
89 extern int delete_capability(const char *);
90 extern int find_capability(const char *);
91 extern void send_capabilities(struct Client *, struct AccessItem *, int);
92 extern void write_links_file(void *);
93 extern void server_estab(struct Client *);
94 extern const char *show_capabilities(struct Client *);
95 extern void try_connections(void *);
96 extern void burst_channel(struct Client *client_p, struct Channel *);
97 extern void sendnick_TS(struct Client *, struct Client *);
98 extern int serv_connect(struct AccessItem *, struct Client *);
99 extern struct Client *find_servconn_in_progress(const char *);
100 extern struct Server *make_server(struct Client *);
101 #endif /* INCLUDED_s_serv_h */

Properties

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

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28