00001 /* Useful constants. 00002 * 00003 * PegSoft miscellaneous library (c) 2004 PegSoft 00004 * Contact us at pegsoft@pegsoft.net 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License version 2 as 00008 * published by the Free Software Foundation. 00009 * 00010 * This program is distributed in the hope that it will be useful, but 00011 * WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this software (the COPYING file); if not, write to the 00017 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, 00018 * USA. 00019 * 00020 */ 00021 00027 #ifndef MISC_CONSTANTS_H 00028 #define MISC_CONSTANTS_H 00029 00030 /*************************************************************************/ 00031 00032 namespace misc 00033 { 00034 00035 /*************************************************************************/ 00036 00037 /* DNS-related constants */ 00038 00040 size_t const DOMAIN_MAX = 255; 00042 size_t const LABEL_MAX = 63; 00043 00044 /*************************************************************************/ 00045 00046 } /* namespace misc */ 00047 00048 /*************************************************************************/ 00049 00050 #endif /* MISC_CONSTANTS_H */