| 1 |
/*
|
| 2 |
* Copyright (C) 1998,1999,2000 Ross Combs (rocombs@cs.nmsu.edu)
|
| 3 |
*
|
| 4 |
* This program is free software; you can redistribute it and/or
|
| 5 |
* modify it under the terms of the GNU General Public License
|
| 6 |
* as published by the Free Software Foundation; either version 2
|
| 7 |
* of the License, or (at your option) any later version.
|
| 8 |
*
|
| 9 |
* This program is distributed in the hope that it will be useful,
|
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 12 |
* GNU General Public License for more details.
|
| 13 |
*
|
| 14 |
* You should have received a copy of the GNU General Public License
|
| 15 |
* along with this program; if not, write to the Free Software
|
| 16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
| 17 |
*/
|
| 18 |
#ifndef INCLUDED_FIELD_SIZES_TYPES
|
| 19 |
#define INCLUDED_FIELD_SIZES_TYPES
|
| 20 |
|
| 21 |
#define MAX_PACKET_SIZE 3072
|
| 22 |
#define MAX_NORMAL_TYPE 0xffff
|
| 23 |
#define MAX_FILE_TYPE 0xffff
|
| 24 |
#define MAX_AUTH_TYPE 0xff
|
| 25 |
#define MAX_GAMES_LIST 20
|
| 26 |
#define MAX_MESSAGE_LEN 255
|
| 27 |
#define MAX_COMMAND_LEN 32
|
| 28 |
#define USER_NAME_MAX 16 /* including terminating NUL char */
|
| 29 |
#define USER_NAME_MIN 2
|
| 30 |
#define USER_PASS_MAX 12 /* max password length as allowed by clients */
|
| 31 |
#define UNCHECKED_NAME_STR 32 /* including terminating NUL char */
|
| 32 |
/* (longer than USER_NAME_MAX and CHAR_NAME_LEN so that
|
| 33 |
* proper error packets can be returned) */
|
| 34 |
#define MAX_CLANNAME_LEN 64
|
| 35 |
#define CHANNEL_NAME_LEN 64
|
| 36 |
#define CHAR_NAME_LEN 16 /* including terminating NUL char */
|
| 37 |
#define REALM_NAME_LEN 32
|
| 38 |
#define GAME_NAME_LEN 32
|
| 39 |
#define GAME_PASS_LEN 32
|
| 40 |
#define GAME_INFO_LEN 256
|
| 41 |
#define MAP_NAME_LEN 64
|
| 42 |
#define BNETHASH_LEN 20 /* uint32*5, see bnethash.h */
|
| 43 |
#define MAX_EXEINFO_STR 256 /* including terminating NUL char */
|
| 44 |
#define MAX_OWNER_STR 128 /* including terminating NUL char */
|
| 45 |
#define MAX_CDKEY_STR 128 /* including terminating NUL char */
|
| 46 |
#define MAX_EMAIL_STR 128 /* including terminating NUL char */
|
| 47 |
#define MAX_WINHOST_STR 128 /* including terminating NUL char */
|
| 48 |
#define MAX_WINUSER_STR 128 /* including terminating NUL char */
|
| 49 |
#define MAX_LANG_STR 64 /* including terminating NUL char */
|
| 50 |
#define MAX_COUNTRYNAME_STR 128 /* including terminating NUL char */
|
| 51 |
#define MAX_FILENAME_STR 2048 /* including terminating NUL char */
|
| 52 |
#define MAX_GAMEREP_HEAD_STR 2048 /* including terminating NUL char */
|
| 53 |
#define MAX_GAMEREP_BODY_STR 8192 /* including terminating NUL char */
|
| 54 |
#define MAX_PLAYERINFO_STR 2048 /* including terminating NUL char */
|
| 55 |
#define MAX_COUNTRYCODE_STR 32 /* including terminating NUL char */
|
| 56 |
#define MAX_COUNTRY_STR 32 /* including terminating NUL char */
|
| 57 |
#define MAX_ATTRKEY_STR 1024 /* including terminating NUL char */
|
| 58 |
#define MAX_ATTRVAL_STR 4096 /* including terminating NUL char */
|
| 59 |
#define MAX_IRC_MESSAGE_LEN 512 /* including CRLF (according to RFC 2812) */
|
| 60 |
#define MAX_TOPIC_LEN 201 /* including terminating NUL char */
|
| 61 |
#define CLANSHORT_NAME_MAX 4
|
| 62 |
#define CLAN_NAME_MAX 25 /* including terminating NUL char */
|
| 63 |
|
| 64 |
#endif
|