ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/branches/newio/include/s_serv.h
Revision: 2407
Committed: Wed Jul 17 20:29:02 2013 UTC (10 years, 8 months ago) by michael
Content type: text/x-chdr
File size: 4218 byte(s)
Log Message:
- ioengine changes as of 17JUL13

File Contents

# Content
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 MaskItem;
30 struct Client;
31 struct MaskItem;
32 struct Channel;
33
34 /* Capabilities */
35 struct Capability
36 {
37 dlink_node node;
38 char *name; /* name of capability */
39 unsigned int cap; /* mask value */
40 };
41
42 #define CAP_CAP 0x00000001 /* received a CAP to begin with */
43 #define CAP_QS 0x00000002 /* Can handle quit storm removal */
44 #define CAP_EX 0x00000004 /* Can do channel +e exemptions */
45 #define CAP_CHW 0x00000008 /* Can do channel wall @# */
46 #define CAP_IE 0x00000010 /* Can do invite exceptions */
47 #define CAP_EOB 0x00000020 /* Can do EOB message */
48 #define CAP_KLN 0x00000040 /* Can do KLINE message */
49 #define CAP_GLN 0x00000080 /* Can do GLINE message */
50 #define CAP_TS6 0x00000100 /* Can do TS6 */
51 #define CAP_KNOCK 0x00000200 /* supports KNOCK */
52 #define CAP_UNKLN 0x00000400 /* Can do UNKLINE message */
53 #define CAP_CLUSTER 0x00000800 /* supports server clustering */
54 #define CAP_ENCAP 0x00001000 /* supports ENCAP message */
55 #define CAP_HOPS 0x00002000 /* supports HALFOPS */
56 #define CAP_TBURST 0x00004000 /* supports TBURST */
57 #define CAP_SVS 0x00008000 /* supports services */
58 #define CAP_DLN 0x00010000 /* Can do DLINE message */
59 #define CAP_UNDLN 0x00020000 /* Can do UNDLINE message */
60 #define CAP_FAKEHOST 0x00040000 /* supports fake hosts */
61
62 /*
63 * Capability macros.
64 */
65 #define IsCapable(x, cap) ((x)->localClient->caps & (cap))
66 #define SetCapable(x, cap) ((x)->localClient->caps |= (cap))
67 #define ClearCap(x, cap) ((x)->localClient->caps &= ~(cap))
68
69
70 /*
71 * return values for hunt_server()
72 */
73 #define HUNTED_NOSUCH (-1) /* if the hunted server is not found */
74 #define HUNTED_ISME 0 /* if this server should execute the command */
75 #define HUNTED_PASS 1 /* if message passed onwards successfully */
76
77 extern struct Timer connect_timer;
78 extern int valid_servname(const char *);
79 extern int check_server(const char *, struct Client *);
80 extern int hunt_server(struct Client *, struct Client *,
81 const char *, const int, const int, char *[]);
82 extern void add_capability(const char *, int, int);
83 extern int delete_capability(const char *);
84 extern int unsigned find_capability(const char *);
85 extern void send_capabilities(struct Client *, int);
86 extern void write_links_file(struct Event *);
87 extern void read_links_file(void);
88 extern void server_estab(struct Client *);
89 extern const char *show_capabilities(const struct Client *);
90 extern void try_connections(struct Event *);
91 extern void burst_channel(struct Client *client_p, struct Channel *);
92 extern void sendnick_TS(struct Client *, struct Client *);
93 extern int serv_connect(struct MaskItem *, struct Client *);
94 extern struct Client *find_servconn_in_progress(const char *);
95 extern struct Server *make_server(struct Client *);
96 #endif /* INCLUDED_s_serv_h */

Properties

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