epoc32/include/networking/dnd_err.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     2
// All rights reserved.
williamr@2
     3
// This component and the accompanying materials are made available
williamr@2
     4
// 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
williamr@2
     5
// which accompanies this distribution, and is available
williamr@2
     6
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     7
//
williamr@2
     8
// Initial Contributors:
williamr@2
     9
// Nokia Corporation - initial contribution.
williamr@2
    10
//
williamr@2
    11
// Contributors:
williamr@2
    12
//
williamr@2
    13
// Description:
williamr@2
    14
// dnd_err.h - name resolver error constants
williamr@2
    15
// IPv6/IPv4 TCP/IP Errors to RHostResolver actions
williamr@2
    16
//
williamr@2
    17
williamr@2
    18
williamr@2
    19
williamr@2
    20
/**
williamr@2
    21
 @file dnd_err.h
williamr@2
    22
 @publishedAll
williamr@2
    23
 @released
williamr@2
    24
*/
williamr@2
    25
#ifndef __DND_ERR_H__
williamr@2
    26
#define __DND_ERR_H__
williamr@2
    27
williamr@2
    28
// This file contains the error values that might be passed on to the applications by the DND
williamr@2
    29
williamr@2
    30
const TInt KErrDndNameNotFound		= -5120;	// Returned when no data found for GetByName
williamr@2
    31
const TInt KErrDndAddrNotFound		= -5121;	// Returned when no data found for GetByAddr
williamr@2
    32
williamr@2
    33
const TInt KErrDndNoServers			= -5122;	// No DNS server addresses available (timeout)
williamr@2
    34
const TInt KErrDndNoRoute			= -5123;	// Send timeout for the query (probably no route for server)
williamr@2
    35
williamr@2
    36
const TInt KErrDndCache				= -5124;	// Corrupted data in cache (= bad DNS reply from server)
williamr@2
    37
williamr@2
    38
// Errors mapped from the DNS reply. These are normally handled internally
williamr@2
    39
// by the resolver code, and rarely, if ever, actually reach the RHostResolver
williamr@2
    40
const TInt KErrDndFormat			= -5125;	// Wrong format
williamr@2
    41
const TInt KErrDndServerFailure		= -5126;
williamr@2
    42
const TInt KErrDndBadName			= -5127;	// Bad name
williamr@2
    43
const TInt KErrDndNotImplemented	= -5128;
williamr@2
    44
const TInt KErrDndRefused			= -5129;	// Server refused	
williamr@2
    45
williamr@2
    46
// Errors while processing response
williamr@2
    47
const TInt KErrDndBadQuery			= -5130;	// Bad queryfrom application (invalid domain name, etc.), not processed
williamr@2
    48
const TInt KErrDndNoRecord			= -5131;	// No record found of the desired type and class. 
williamr@2
    49
const TInt KErrDndNameTooBig		= -5132;	// Buffer overflow with name
williamr@2
    50
const TInt KErrDndUnknown			= -5133;	// Misc error - must be something wrong with the 
williamr@2
    51
												// packet or the NS
williamr@2
    52
const TInt KErrDndServerUnusable	= -5134;	// The server is unusable for the attempted query
williamr@2
    53
												// (for example, not allowing recursion).
williamr@2
    54
williamr@2
    55
#endif