| 1 |
adx |
30 |
/* |
| 2 |
michael |
2865 |
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) |
| 3 |
adx |
30 |
* |
| 4 |
michael |
2865 |
* Copyright (c) 1997-2014 ircd-hybrid development team |
| 5 |
adx |
30 |
* |
| 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 |
| 8 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
| 9 |
|
|
* (at your option) any later version. |
| 10 |
|
|
* |
| 11 |
|
|
* This program is distributed in the hope that it will be useful, |
| 12 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
|
|
* GNU General Public License for more details. |
| 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 |
| 19 |
|
|
* USA |
| 20 |
|
|
*/ |
| 21 |
|
|
|
| 22 |
michael |
2865 |
/*! \file send.h |
| 23 |
|
|
* \brief A header for the message sending functions. |
| 24 |
|
|
* \version $Id$ |
| 25 |
|
|
*/ |
| 26 |
|
|
|
| 27 |
adx |
30 |
#ifndef INCLUDED_send_h |
| 28 |
|
|
#define INCLUDED_send_h |
| 29 |
|
|
|
| 30 |
|
|
#include "fdlist.h" |
| 31 |
michael |
3109 |
#include "numeric.h" |
| 32 |
adx |
30 |
|
| 33 |
michael |
2921 |
enum { NOCAPS = 0 }; |
| 34 |
michael |
2867 |
|
| 35 |
michael |
2921 |
enum |
| 36 |
|
|
{ |
| 37 |
michael |
3702 |
ALL_MEMBERS = 0, |
| 38 |
michael |
3842 |
ONLY_SERVERS = 1 |
| 39 |
michael |
2921 |
}; |
| 40 |
michael |
1761 |
|
| 41 |
michael |
2867 |
enum |
| 42 |
|
|
{ |
| 43 |
|
|
L_ALL = 0, |
| 44 |
|
|
L_OPER = 1, |
| 45 |
|
|
L_ADMIN = 2 |
| 46 |
|
|
}; |
| 47 |
michael |
1798 |
|
| 48 |
michael |
2867 |
enum |
| 49 |
|
|
{ |
| 50 |
|
|
SEND_NOTICE = 1, |
| 51 |
|
|
SEND_GLOBAL = 2, |
| 52 |
|
|
SEND_LOCOPS = 3 |
| 53 |
|
|
}; |
| 54 |
michael |
1798 |
|
| 55 |
michael |
3843 |
/* Used when sending to $#mask or $$mask */ |
| 56 |
michael |
2867 |
enum |
| 57 |
|
|
{ |
| 58 |
|
|
MATCH_SERVER = 1, |
| 59 |
|
|
MATCH_HOST = 2 |
| 60 |
|
|
}; |
| 61 |
michael |
1798 |
|
| 62 |
adx |
30 |
/* |
| 63 |
|
|
* struct decls |
| 64 |
|
|
*/ |
| 65 |
|
|
struct Channel; |
| 66 |
|
|
struct Client; |
| 67 |
|
|
|
| 68 |
|
|
/* send.c prototypes */ |
| 69 |
michael |
4462 |
extern void sendq_unblocked(fde_t *, void *); |
| 70 |
adx |
30 |
extern void send_queued_write(struct Client *); |
| 71 |
|
|
extern void send_queued_all(void); |
| 72 |
michael |
1761 |
extern void sendto_one(struct Client *, const char *, ...) AFP(2,3); |
| 73 |
michael |
3110 |
extern void sendto_one_numeric(struct Client *, struct Client *, enum irc_numerics, ...); |
| 74 |
michael |
3111 |
extern void sendto_one_notice(struct Client *, struct Client *, const char *, ...) AFP(3,4); |
| 75 |
adx |
30 |
extern void sendto_channel_butone(struct Client *, struct Client *, |
| 76 |
michael |
1479 |
struct Channel *, unsigned int, |
| 77 |
michael |
1761 |
const char *, ...) AFP(5,6); |
| 78 |
michael |
1734 |
extern void sendto_common_channels_local(struct Client *, int, unsigned int, |
| 79 |
michael |
1761 |
const char *, ...) AFP(4,5); |
| 80 |
michael |
2543 |
extern void sendto_channel_local(unsigned int, int, struct Channel *, |
| 81 |
michael |
1761 |
const char *, ...) AFP(4,5); |
| 82 |
michael |
2543 |
extern void sendto_channel_local_butone(struct Client *, unsigned int, unsigned int, struct Channel *, |
| 83 |
michael |
1761 |
const char *, ...) AFP(5,6); |
| 84 |
michael |
1474 |
extern void sendto_server(struct Client *, |
| 85 |
michael |
1015 |
const unsigned int, |
| 86 |
michael |
1761 |
const unsigned int, const char *, ...) AFP(4,5); |
| 87 |
michael |
2865 |
extern void sendto_match_butone(struct Client *, struct Client *, |
| 88 |
michael |
3170 |
const char *, int, const char *, ...) AFP(5,6); |
| 89 |
michael |
2543 |
extern void sendto_match_servs(struct Client *, const char *, unsigned int, |
| 90 |
michael |
1761 |
const char *, ...) AFP(4,5); |
| 91 |
michael |
1618 |
extern void sendto_realops_flags(unsigned int, int, int, |
| 92 |
michael |
1761 |
const char *, ...) AFP(4,5); |
| 93 |
adx |
30 |
extern void sendto_wallops_flags(unsigned int, struct Client *, |
| 94 |
michael |
1761 |
const char *, ...) AFP(3,4); |
| 95 |
michael |
4430 |
extern void sendto_realops_flags_ratelimited(time_t *, const char *, ...) AFP(2,3); |
| 96 |
adx |
30 |
|
| 97 |
michael |
2865 |
extern void sendto_anywhere(struct Client *, struct Client *, |
| 98 |
michael |
2793 |
const char *, |
| 99 |
|
|
const char *, ...) AFP(4,5); |
| 100 |
adx |
30 |
#endif /* INCLUDED_send_h */ |