tcpiputils/dnd/inc/dns.h
branchRCL_3
changeset 22 8d540f55e491
parent 21 abbed5a4b42a
equal deleted inserted replaced
21:abbed5a4b42a 22:8d540f55e491
    49 	{
    49 	{
    50 public:
    50 public:
    51 	//
    51 	//
    52 	// MDnsSession API (methods callable by resolver)
    52 	// MDnsSession API (methods callable by resolver)
    53 	// (documented in the mixin class)
    53 	// (documented in the mixin class)
    54 	virtual TInt NewQuery(const TDnsMessage &aQuery, TDnsServerScope aServerScope, TUint32 aFlags);
    54 	virtual TInt NewQuery(const TDnsMessage &aQuery, TDnsServerScope aServerScope, TUint32 aFlags, TBool aSuffixSupportEnabled);
    55 	virtual void CancelQuery();
    55 	virtual void CancelQuery();
    56 	virtual TInt DoQueryL(const TTime &aRequestTime, const EDnsQType aQType);
    56 	virtual TInt DoQueryL(const TTime &aRequestTime, const EDnsQType aQType);
    57 	virtual TInt DoNext(TDnsMessageBuf &aReply, TInt aNext) const;
    57 	virtual TInt DoNext(TDnsMessageBuf &aReply, TInt aNext) const;
    58 	void DoError(TInt aError, TUint aTTL);
    58 	void DoError(TInt aError, TUint aTTL);
    59 	virtual TBool PickNewServer();
    59 	virtual TBool PickNewServer();
   116 	// Callback section
   116 	// Callback section
   117 	MDnsResolver *iCallback;
   117 	MDnsResolver *iCallback;
   118 	// "Owner" source
   118 	// "Owner" source
   119 	CDndDnsclient *iOwner;	//< Actual owner of the request data
   119 	CDndDnsclient *iOwner;	//< Actual owner of the request data
   120 
   120 
   121 	TUint iNetworkId;      //< NetworkId from the request message.	
   121 	TUint iNetworkId;      //< NetworkId from the request message.
       
   122 	RInetSuffixList iSuffixList;	//< Container to store the domain search list on the interface where the query is sent
       
   123 	TBool iIsIncompleteHostName;	//< Flag sent on the query to identify queries that need to retried on suffixes
       
   124 	TBool iCanResolveIncompleteName;	//< Flag to confirm incomplete name without domain suffix tried for resolution as it is
       
   125 	THostName iActualQueryName;		//< To store actual query name while domain suffixes are being applied
       
   126 	TBool iPendingSuffixExist;		//< Flag set when suffixes are exhausted
       
   127 	TInt iFlowReqType;				//< Differentiates IMPLICIT/EXPLICIT
       
   128 	TBool iSuffixSupportEnabled;	//< Flag to switch ON/OFF the suffix support
   122 	};
   129 	};
   123 
   130 
   124 class TInetAddressInfo;
   131 class TInetAddressInfo;
   125 class CDndDnsclient : public CDnsSocket, public MDnsSource
   132 class CDndDnsclient : public CDnsSocket, public MDnsSource
   126     {
   133     {