/[svn]/ircd-hybrid/include/packet.h
ViewVC logotype

Annotation of /ircd-hybrid/include/packet.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 190 - (hide annotations)
Sun Oct 23 22:06:17 2005 UTC (17 years, 1 month ago) by adx
File MIME type: text/x-csrc
File size: 2063 byte(s)
* prototypes are now prefixed with either nothing or EXTERN
  (meaning it's an ircd.dll API)
* dynamic modules now work on win32.
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     #define MAX_FLOOD 5
45     #define MAX_FLOOD_BURST MAX_FLOOD * 8
46    
47     struct Callback;
48    
49 adx 178 void *iorecv_default(va_list);
50 adx 190 EXTERN struct Callback *iorecv_cb;
51     EXTERN struct Callback *iorecvctrl_cb;
52 adx 30
53     PF read_ctrl_packet;
54     PF read_packet;
55     PF flood_recalc;
56 adx 190 EXTERN void flood_endgrace(struct Client *);
57 adx 30
58     #endif /* INCLUDED_packet_h */

Properties

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

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