networkprotocols/iphook/inhook6/include/dnd_err.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // dnd_err.h - name resolver error constants
       
    15 // IPv6/IPv4 TCP/IP Errors to RHostResolver actions
       
    16 //
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file dnd_err.h
       
    22  @publishedAll
       
    23  @released
       
    24 */
       
    25 #ifndef __DND_ERR_H__
       
    26 #define __DND_ERR_H__
       
    27 
       
    28 // This file contains the error values that might be passed on to the applications by the DND
       
    29 
       
    30 const TInt KErrDndNameNotFound		= -5120;	// Returned when no data found for GetByName
       
    31 const TInt KErrDndAddrNotFound		= -5121;	// Returned when no data found for GetByAddr
       
    32 
       
    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)
       
    35 
       
    36 const TInt KErrDndCache				= -5124;	// Corrupted data in cache (= bad DNS reply from server)
       
    37 
       
    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	
       
    45 
       
    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 
       
    51 												// packet or the NS
       
    52 const TInt KErrDndServerUnusable	= -5134;	// The server is unusable for the attempted query
       
    53 												// (for example, not allowing recursion).
       
    54 
       
    55 #endif