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

Contents of /ircd-hybrid-7.2/include/msg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 948 - (show annotations)
Tue Jul 21 17:34:06 2009 UTC (10 years, 3 months ago) by michael
File MIME type: text/x-csrc
File size: 2420 byte(s)
- lp64\llp64\ilp32 portability fixes

1 /*
2 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 * msg.h: A header for the message handler structure.
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_msg_h
26 #define INCLUDED_msg_h
27
28 #include "ircd_handler.h"
29
30 /*
31 * Message table structure
32 */
33 struct Message
34 {
35 const char *cmd;
36 unsigned int count; /* number of times command used */
37 unsigned int rcount; /* number of times command used by server */
38 unsigned int parameters; /* at least this many args must be passed
39 * or an error will be sent to the user
40 * before the m_func is even called
41 */
42 unsigned int maxpara; /* maximum permitted parameters */
43 unsigned int flags; /* bit 0 set means that this command is allowed
44 * to be used only on the average of once per 2
45 * seconds -SRB
46 */
47 uint64_t bytes; /* bytes received for this message */
48
49 /*
50 * client_p = Connected client ptr
51 * source_p = Source client ptr
52 * parc = parameter count
53 * parv = parameter variable array
54 */
55 /* handlers:
56 * UNREGISTERED, CLIENT, SERVER, ENCAP, OPER, DUMMY, LAST
57 */
58 MessageHandler handlers[LAST_HANDLER_TYPE];
59 };
60
61 /*
62 * Constants
63 */
64 #define MFLG_SLOW 0x001 /* Command can be executed roughly
65 * once per 2 seconds.
66 */
67 #define MFLG_UNREG 0x002 /* Command available to unregistered
68 * clients.
69 */
70
71 #define MAXPARA 15
72
73 #endif /* INCLUDED_msg_h */

Properties

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

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