1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/networking/dnd_err.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,55 @@
1.4 +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// dnd_err.h - name resolver error constants
1.18 +// IPv6/IPv4 TCP/IP Errors to RHostResolver actions
1.19 +//
1.20 +
1.21 +
1.22 +
1.23 +/**
1.24 + @file dnd_err.h
1.25 + @publishedAll
1.26 + @released
1.27 +*/
1.28 +#ifndef __DND_ERR_H__
1.29 +#define __DND_ERR_H__
1.30 +
1.31 +// This file contains the error values that might be passed on to the applications by the DND
1.32 +
1.33 +const TInt KErrDndNameNotFound = -5120; // Returned when no data found for GetByName
1.34 +const TInt KErrDndAddrNotFound = -5121; // Returned when no data found for GetByAddr
1.35 +
1.36 +const TInt KErrDndNoServers = -5122; // No DNS server addresses available (timeout)
1.37 +const TInt KErrDndNoRoute = -5123; // Send timeout for the query (probably no route for server)
1.38 +
1.39 +const TInt KErrDndCache = -5124; // Corrupted data in cache (= bad DNS reply from server)
1.40 +
1.41 +// Errors mapped from the DNS reply. These are normally handled internally
1.42 +// by the resolver code, and rarely, if ever, actually reach the RHostResolver
1.43 +const TInt KErrDndFormat = -5125; // Wrong format
1.44 +const TInt KErrDndServerFailure = -5126;
1.45 +const TInt KErrDndBadName = -5127; // Bad name
1.46 +const TInt KErrDndNotImplemented = -5128;
1.47 +const TInt KErrDndRefused = -5129; // Server refused
1.48 +
1.49 +// Errors while processing response
1.50 +const TInt KErrDndBadQuery = -5130; // Bad queryfrom application (invalid domain name, etc.), not processed
1.51 +const TInt KErrDndNoRecord = -5131; // No record found of the desired type and class.
1.52 +const TInt KErrDndNameTooBig = -5132; // Buffer overflow with name
1.53 +const TInt KErrDndUnknown = -5133; // Misc error - must be something wrong with the
1.54 + // packet or the NS
1.55 +const TInt KErrDndServerUnusable = -5134; // The server is unusable for the attempted query
1.56 + // (for example, not allowing recursion).
1.57 +
1.58 +#endif