reSIProcate/rutil  9694
Public Member Functions
resip::DnsStub::ResultConverterImpl< QueryType > Class Template Reference
Inheritance diagram for resip::DnsStub::ResultConverterImpl< QueryType >:
Inheritance graph
[legend]
Collaboration diagram for resip::DnsStub::ResultConverterImpl< QueryType >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void notifyUser (const Data &target, int status, const Data &msg, const DnsResourceRecordsByPtr &src, DnsResultSink *sink)

Detailed Description

template<class QueryType>
class resip::DnsStub::ResultConverterImpl< QueryType >

Definition at line 210 of file DnsStub.hxx.


Member Function Documentation

template<class QueryType >
virtual void resip::DnsStub::ResultConverterImpl< QueryType >::notifyUser ( const Data target,
int  status,
const Data msg,
const DnsResourceRecordsByPtr src,
DnsResultSink sink 
) [inline, virtual]

Implements resip::DnsStub::ResultConverter.

Definition at line 213 of file DnsStub.hxx.

References resip::DNSResult< T >::domain, resip::DNSResult< T >::msg, resip::DnsResultSink::onDnsResult(), resip::DnsResultSink::onLogDnsResult(), resip::DNSResult< T >::records, and resip::DNSResult< T >::status.

            {
               assert(sink);
               DNSResult<typename QueryType::Type>  result;
               for (unsigned int i = 0; i < src.size(); ++i)
               {
                  result.records.push_back(*(dynamic_cast<typename QueryType::Type*>(src[i])));
               }
               result.domain = target;
               result.status = status;
               result.msg = msg;
               sink->onLogDnsResult(result);
               sink->onDnsResult(result);
            }

Here is the call graph for this function:


The documentation for this class was generated from the following file: