1 |
/* Copyright (C) 2003 Stephane Thiell |
2 |
* |
3 |
* This file is part of pxyservd (from pxys) |
4 |
* |
5 |
* This program is free software; you can redistribute it and/or |
6 |
* modify it under the terms of the GNU General Public License |
7 |
* as published by the Free Software Foundation; either version 2 |
8 |
* of the License, or (at your option) any later version. |
9 |
* |
10 |
* This program is distributed in the hope that it will be useful, |
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
* GNU General Public License for more details. |
14 |
* |
15 |
* You should have received a copy of the GNU General Public License |
16 |
* along with this program; if not, write to the Free Software |
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 |
* |
19 |
*/ |
20 |
#ifndef INCLUDED_SEND_H_ |
21 |
#define INCLUDED_SEND_H_ |
22 |
|
23 |
#include <stdarg.h> |
24 |
#include <sys/types.h> |
25 |
#include <sys/socket.h> |
26 |
#include <netinet/in.h> |
27 |
|
28 |
#define CRLF "\r\n" |
29 |
#define MSGBUF_SIZE 512 |
30 |
|
31 |
struct Channel; |
32 |
|
33 |
extern void send_queued(void); |
34 |
extern void send_raw(const char *fmt, ...); |
35 |
extern void send_gline(struct in_addr addr, time_t delay, const char *fmt,...); |
36 |
extern void send_squit(const char *msg); |
37 |
extern void send_to_console(const char *fmt, ...); |
38 |
extern void send_to_one(const char *dst, const char *fmt, ...); |
39 |
extern void send_client_to_one(const char *dst, const char *fmt, ...); |
40 |
extern void send_client_to_channel(struct Channel *channel, |
41 |
const char *fmt, ...); |
42 |
extern void send_client_to_console(const char *fmt, ...); |
43 |
extern void send_msg_client_to_console(const char *fmt, ...); |
44 |
|
45 |
#endif /* INCLUDED_SEND_H_ */ |