ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/include/packet.h
Revision: 628
Committed: Mon May 29 20:04:32 2006 UTC (17 years, 10 months ago) by adx
Content type: text/x-chdr
File size: 2094 byte(s)
Log Message:
Added contrib module for character set recoding

Note it doesn't work at the moment because listen{} itself
is not yet modularised.  Will probably also need some modifications
to include iconv headers and libraries in the build process.

File Contents

# User Rev Content
1 adx 30 /*
2     * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3     * packet.h: A header for the packet 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 knight 31 * $Id$
23 adx 30 */
24    
25     #ifndef INCLUDED_packet_h
26     #define INCLUDED_packet_h
27    
28     /*
29     * this hides in here rather than in defaults.h because it really shouldn't
30     * be tweaked unless you *REALLY REALLY* know what you're doing!
31     * Remember, messages are only anti-flooded on incoming from the client, not on
32     * incoming from a server for a given client, so if you tweak this you risk
33     * allowing a client to flood differently depending upon where they are on
34     * the network..
35     * -- adrian
36     */
37     /* MAX_FLOOD is the amount of lines in a 'burst' we allow from a client,
38     * anything beyond MAX_FLOOD is limited to about one line per second.
39     *
40     * MAX_FLOOD_CONN is the amount of lines we allow from a client who has
41     * just connected. this allows clients to rejoin multiple channels
42     * without being so heavily penalised they excess flood.
43     */
44 adx 628 #define MAX_FLOOD 5
45     #define MAX_FLOOD_BURST MAX_FLOOD * 8
46 adx 30
47 adx 628 #define READBUF_SIZE 16384
48    
49 adx 30 struct Callback;
50    
51 adx 178 void *iorecv_default(va_list);
52 adx 190 EXTERN struct Callback *iorecv_cb;
53     EXTERN struct Callback *iorecvctrl_cb;
54 adx 30
55     PF read_ctrl_packet;
56     PF read_packet;
57     PF flood_recalc;
58 adx 190 EXTERN void flood_endgrace(struct Client *);
59 adx 30
60     #endif /* INCLUDED_packet_h */

Properties

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