1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // dnd_err.h - name resolver error constants
15 // IPv6/IPv4 TCP/IP Errors to RHostResolver actions
28 // This file contains the error values that might be passed on to the applications by the DND
30 const TInt KErrDndNameNotFound = -5120; // Returned when no data found for GetByName
31 const TInt KErrDndAddrNotFound = -5121; // Returned when no data found for GetByAddr
33 const TInt KErrDndNoServers = -5122; // No DNS server addresses available (timeout)
34 const TInt KErrDndNoRoute = -5123; // Send timeout for the query (probably no route for server)
36 const TInt KErrDndCache = -5124; // Corrupted data in cache (= bad DNS reply from server)
38 // Errors mapped from the DNS reply. These are normally handled internally
39 // by the resolver code, and rarely, if ever, actually reach the RHostResolver
40 const TInt KErrDndFormat = -5125; // Wrong format
41 const TInt KErrDndServerFailure = -5126;
42 const TInt KErrDndBadName = -5127; // Bad name
43 const TInt KErrDndNotImplemented = -5128;
44 const TInt KErrDndRefused = -5129; // Server refused
46 // Errors while processing response
47 const TInt KErrDndBadQuery = -5130; // Bad queryfrom application (invalid domain name, etc.), not processed
48 const TInt KErrDndNoRecord = -5131; // No record found of the desired type and class.
49 const TInt KErrDndNameTooBig = -5132; // Buffer overflow with name
50 const TInt KErrDndUnknown = -5133; // Misc error - must be something wrong with the
52 const TInt KErrDndServerUnusable = -5134; // The server is unusable for the attempted query
53 // (for example, not allowing recursion).