Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

AsyncResolverError.h

Go to the documentation of this file.
00001 /*  AsyncResolverError.h - asynchronous DNS errors
00002     Copyright (C) 2004 Mark Weaver
00003     Written by Mark Weaver <mark@npsl.co.uk>
00004 
00005     Part of the Open-Win32 library.
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public
00017     License along with this library; if not, write to the
00018     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019     Boston, MA  02111-1307, USA.
00020 */
00021 
00022 /* Copyright 1998 by the Massachusetts Institute of Technology.
00023  *
00024  * Permission to use, copy, modify, and distribute this
00025  * software and its documentation for any purpose and without
00026  * fee is hereby granted, provided that the above copyright
00027  * notice appear in all copies and that both that copyright
00028  * notice and this permission notice appear in supporting
00029  * documentation, and that the name of M.I.T. not be used in
00030  * advertising or publicity pertaining to distribution of the
00031  * software without specific, written prior permission.
00032  * M.I.T. makes no representations about the suitability of
00033  * this software for any purpose.  It is provided "as is"
00034  * without express or implied warranty.
00035  */
00036 
00041 #ifndef OW32_AsyncResolverError_h
00042 #define OW32_AsyncResolverError_h
00043 
00044 namespace OW32
00045 {
00046 
00050 enum AsyncResolverError 
00051 {
00053     ARES_SUCCESS        = 0,
00054 
00055     // Server error codes (ARES_ENODATA indicates no relevant answer)
00056     ARES_ENODATA        = 1,
00057     ARES_EFORMERR       = 2,
00058     ARES_ESERVFAIL      = 3,
00059     ARES_ENOTFOUND      = 4,
00060     ARES_ENOTIMP        = 5,
00061     ARES_EREFUSED       = 6,
00062 
00063     // Locally generated error codes
00064     ARES_EBADQUERY      = 7,
00065     ARES_EBADNAME       = 8,
00066     ARES_EBADFAMILY     = 9,
00067     ARES_EBADRESP       = 10,
00068     ARES_ECONNREFUSED   = 11,
00069     ARES_ETIMEOUT       = 12,
00070     ARES_EOF            = 13,
00071     ARES_EFILE          = 14,
00072     ARES_ENOMEM         = 15,
00073     ARES_EDESTRUCTION   = 16,
00074     ARES_ESYS           = 17,
00075     ARES_ENET           = 18
00076 };
00077 
00078 } // namespace OW32
00079 
00080 #endif // OW32_AsyncResolverError_h

Generated on Sun Jun 5 01:29:17 2005 for OW32 by  doxygen 1.3.9.1