ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/include/ircd_defs.h
Revision: 534
Committed: Tue Mar 21 19:06:29 2006 UTC (18 years ago) by michael
Content type: text/x-chdr
File size: 2460 byte(s)
Log Message:
- Renamed MAXPARA definition to IRCD_MAXPARA and moved it to ircd_defs.h
- Untabified parse.c

File Contents

# User Rev Content
1 adx 30 /*
2     * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3     * ircd_defs.h: A header for ircd global definitions.
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     /*
26     * NOTE: NICKLEN and TOPICLEN do not live here anymore. Set it with configure
27     * Otherwise there are no user servicable part here.
28     *
29     */
30 michael 534 /*
31     * ircd_defs.h - Global size definitions for record entries used
32     * througout ircd. DON'T EVER CHANGE ANYTHING IN THIS FILE!!
33     */
34 adx 30 #ifndef INCLUDED_ircd_defs_h
35     #define INCLUDED_ircd_defs_h
36    
37     /* Right out of the RFC */
38 michael 534 #define IRCD_BUFSIZE 512 /* Maximum allowed length of a message (510 + CR-LF) */
39     #define IRCD_MAXPARA 15 /* Maximum allowed parameters a command may have */
40    
41 adx 30 #define PORTNAMELEN 6 /* ":31337" */
42    
43     #define REALLEN 50
44     #define KILLLEN 90
45 michael 99 #define CHANNELLEN 200
46     #define LOCAL_CHANNELLEN 50
47 adx 30 #define REASONLEN 120
48     #define KICKLEN 160
49     #define AWAYLEN 160
50    
51     /* 23+1 for \0 */
52     #define KEYLEN 24
53     #define OPERNICKLEN NICKLEN*2 /* Length of OPERNICKs. */
54    
55     #define USERHOST_REPLYLEN (NICKLEN+HOSTLEN+USERLEN+5)
56    
57     #define PLATFORMLEN 200 /* platform string used in info response */
58    
59     #ifdef _WIN32
60     #define _UTSNAME_LENGTH 65
61     #define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH
62     #define _UTSNAME_DOMAIN_LENGTH _UTSNAME_LENGTH
63     struct utsname
64     {
65     char sysname[_UTSNAME_LENGTH];
66     char nodename[_UTSNAME_NODENAME_LENGTH];
67     char release[_UTSNAME_LENGTH];
68     char version[_UTSNAME_LENGTH];
69     char machine[_UTSNAME_LENGTH];
70     char domainname[_UTSNAME_DOMAIN_LENGTH];
71     };
72     int uname (struct utsname *);
73     #endif
74    
75     #define REJECT_HOLD_TIME GlobalSetOptions.rejecttime
76    
77     #endif /* INCLUDED_ircd_defs_h */

Properties

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