/[svn]/branches/newio/include/send.h
ViewVC logotype

Contents of /branches/newio/include/send.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2415 - (show annotations)
Sun Jul 21 14:33:22 2013 UTC (6 years, 11 months ago) by michael
File MIME type: text/x-csrc
File size: 3825 byte(s)
- ioengine changes as of 21JUL13

1 /*
2 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 * send.h: A header for the message sending 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_send_h
26 #define INCLUDED_send_h
27
28 #define ALL_MEMBERS 0
29 #define NON_CHANOPS 1
30 #define ONLY_CHANOPS_VOICED 2
31 #define ONLY_CHANOPS 3
32 #define ONLY_SERVERS 4 /* for channel_mode.c */
33
34 #define L_ALL 0
35 #define L_OPER 1
36 #define L_ADMIN 2
37
38 #define SEND_NOTICE 1
39 #define SEND_GLOBAL 2
40 #define SEND_LOCOPS 3
41
42 #define NOCAPS 0 /* no caps */
43 #define NOFLAGS 0 /* no flags */
44
45 /* used when sending to #mask or $mask */
46 #define MATCH_SERVER 1
47 #define MATCH_HOST 2
48
49
50 /*
51 * struct decls
52 */
53 struct Channel;
54 struct Client;
55 struct MsgBuf;
56
57
58 /* send.c prototypes */
59 extern void kill_highest_sendq(int);
60 extern void flush_connections(struct Client *);
61 extern void send_queued(struct Client *);
62 extern void send_buffer(struct Client *, struct MsgBuf *, const int);
63 extern void sendto_one(struct Client *, const char *, ...) AFP(2,3);
64 extern void sendto_channel_butone(struct Client *, struct Client *,
65 struct Channel *, unsigned int,
66 const char *, ...) AFP(5,6);
67 extern void sendto_common_channels_local(struct Client *, int, unsigned int,
68 const char *, ...) AFP(4,5);
69 extern void sendto_channel_local(int, int, struct Channel *,
70 const char *, ...) AFP(4,5);
71 extern void sendto_channel_local_butone(struct Client *, int, unsigned int, struct Channel *,
72 const char *, ...) AFP(5,6);
73 extern void sendto_channel_remote(struct Client *, struct Client *, int,
74 const unsigned int, const unsigned int,
75 struct Channel *, const char *, ...) AFP(7,8);
76 extern void sendto_server(struct Client *,
77 const unsigned int,
78 const unsigned int, const char *, ...) AFP(4,5);
79 extern void sendto_match_butone(struct Client *, struct Client *, const char *,
80 const int, const char *, ...) AFP(5,6);
81 extern void sendto_match_servs(struct Client *, const char *, int,
82 const char *, ...) AFP(4,5);
83 extern void sendto_realops_flags(unsigned int, int, int,
84 const char *, ...) AFP(4,5);
85 extern void sendto_wallops_flags(unsigned int, struct Client *,
86 const char *, ...) AFP(3,4);
87 extern void ts_warn(const char *, ...) AFP(1,2);
88
89 extern void sendto_anywhere(struct Client *, struct Client *,
90 const char *, ...) AFP(3,4);
91 extern void kill_client(struct Client *, struct Client *,
92 const char *, ... ) AFP(3,4);
93 extern void kill_client_ll_serv_butone(struct Client *, struct Client *,
94 const char *, ...) AFP(3,4);
95 #endif /* INCLUDED_send_h */

Properties

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

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