| 1 | /* |
| 2 | * Copyright (C) 1998,1999,2000 Ross Combs ([email protected]) |
| 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_TYPEScxx . . $ `src/common/field_sizes.h:19:9`! |
| 20 | |
| 21 | const unsigned MAX_PACKET_SIZEcxx . . $ MAX_PACKET_SIZE. = 3072; |
| 22 | const unsigned MAX_WOL_GAMERES_PACKET_SIZEcxx . . $ MAX_WOL_GAMERES_PACKET_SIZE. = 65535; |
| 23 | const unsigned MAX_NORMAL_TYPEcxx . . $ MAX_NORMAL_TYPE. = 0xffff; |
| 24 | const unsigned MAX_FILE_TYPEcxx . . $ MAX_FILE_TYPE. = 0xffff; |
| 25 | const int MAX_AUTH_TYPEcxx . . $ MAX_AUTH_TYPE. = 0xff; |
| 26 | const int MAX_GAMES_LISTcxx . . $ MAX_GAMES_LIST. = 20; |
| 27 | const unsigned MAX_MESSAGE_LENcxx . . $ MAX_MESSAGE_LEN. = 255; |
| 28 | const int MAX_COMMAND_LENcxx . . $ MAX_COMMAND_LEN. = 32; |
| 29 | const unsigned MAX_USERNAME_LENcxx . . $ MAX_USERNAME_LEN. = 16; /* including terminating NUL char */ |
| 30 | const unsigned MIN_USERNAME_LENcxx . . $ MIN_USERNAME_LEN. = 2; |
| 31 | const unsigned MAX_USERPASS_LENcxx . . $ MAX_USERPASS_LEN. = 12; /* max password length as allowed by clients */ |
| 32 | const int UNCHECKED_NAME_STRcxx . . $ UNCHECKED_NAME_STR. = 32; /* including terminating NUL char */ |
| 33 | /* (longer than USER_NAME_MAX and CHAR_NAME_LEN so that |
| 34 | * proper error packets can be returned) */ |
| 35 | const int CLANSHORT_NAME_MAXcxx . . $ CLANSHORT_NAME_MAX. = 4; |
| 36 | const unsigned CLAN_NAME_MAXcxx . . $ CLAN_NAME_MAX. = 24; /* including terminating NUL char */ |
| 37 | const unsigned CLAN_MOTD_MAXcxx . . $ CLAN_MOTD_MAX. = 224; /* including terminating NUL char */ |
| 38 | const int MAX_CHANNELNAME_LENcxx . . $ MAX_CHANNELNAME_LEN. = 32; /* including terminating NUL char */ |
| 39 | const unsigned MAX_CHARNAME_LENcxx . . $ MAX_CHARNAME_LEN. = 16; |
| 40 | const unsigned MIN_CHARNAME_LENcxx . . $ MIN_CHARNAME_LEN. = 2; |
| 41 | const int MAX_GAMENAME_LENcxx . . $ MAX_GAMENAME_LEN. = 32; |
| 42 | const int MAX_GAMEPASS_LENcxx . . $ MAX_GAMEPASS_LEN. = 32; |
| 43 | const int MAX_GAMEINFO_LENcxx . . $ MAX_GAMEINFO_LEN. = 128; |
| 44 | const int MAX_GAMEDESC_LENcxx . . $ MAX_GAMEDESC_LEN. = 32; |
| 45 | const int MAP_NAME_LENcxx . . $ MAP_NAME_LEN. = 64; |
| 46 | const int BNETHASH_LENcxx . . $ BNETHASH_LEN. = 20; /* uint32*5, see bnethash.h */ |
| 47 | const int MAX_EXEINFO_STRcxx . . $ MAX_EXEINFO_STR. = 256; /* including terminating NUL char */ |
| 48 | const int MAX_OWNER_STRcxx . . $ MAX_OWNER_STR. = 128; /* including terminating NUL char */ |
| 49 | const int MAX_CDKEY_STRcxx . . $ MAX_CDKEY_STR. = 128; /* including terminating NUL char */ |
| 50 | const int MAX_EMAIL_STRcxx . . $ MAX_EMAIL_STR. = 128; /* including terminating NUL char */ |
| 51 | const int MAX_WINHOST_STRcxx . . $ MAX_WINHOST_STR. = 128; /* including terminating NUL char */ |
| 52 | const int MAX_WINUSER_STRcxx . . $ MAX_WINUSER_STR. = 128; /* including terminating NUL char */ |
| 53 | const int MAX_LANG_STRcxx . . $ MAX_LANG_STR. = 64; /* including terminating NUL char */ |
| 54 | const int MAX_COUNTRYNAME_STRcxx . . $ MAX_COUNTRYNAME_STR. = 128; /* including terminating NUL char */ |
| 55 | const int MAX_FILENAME_STRcxx . . $ MAX_FILENAME_STR. = 2048; /* including terminating NUL char */ |
| 56 | const int MAX_GAMEREP_HEAD_STRcxx . . $ MAX_GAMEREP_HEAD_STR. = 2048; /* including terminating NUL char */ |
| 57 | const int MAX_GAMEREP_BODY_STRcxx . . $ MAX_GAMEREP_BODY_STR. = 8192; /* including terminating NUL char */ |
| 58 | const int MAX_PLAYERINFO_STRcxx . . $ MAX_PLAYERINFO_STR. = 2048; /* including terminating NUL char */ |
| 59 | const int MAX_COUNTRYCODE_STRcxx . . $ MAX_COUNTRYCODE_STR. = 32; /* including terminating NUL char */ |
| 60 | const int MAX_COUNTRY_STRcxx . . $ MAX_COUNTRY_STR. = 32; /* including terminating NUL char */ |
| 61 | const int MAX_ATTRKEY_STRcxx . . $ MAX_ATTRKEY_STR. = 1024; /* including terminating NUL char */ |
| 62 | const int MAX_ATTRVAL_STRcxx . . $ MAX_ATTRVAL_STR. = 4096; /* including terminating NUL char */ |
| 63 | const unsigned MAX_IRC_MESSAGE_LENcxx . . $ MAX_IRC_MESSAGE_LEN. = 512; /* including CRLF (according to RFC 2812) */ |
| 64 | const unsigned MAX_TOPIC_LENcxx . . $ MAX_TOPIC_LEN. = 201; /* including terminating NUL char */ |
| 65 | const int MAX_REALMNAME_LENcxx . . $ MAX_REALMNAME_LEN. = 32; |
| 66 | const int MAX_WOLV1_CHANNELNAME_LENcxx . . $ MAX_WOLV1_CHANNELNAME_LEN. = 18; /* including '#' char */ |
| 67 | |
| 68 | #endif |