|
reSIProcate/rutil
9694
|


Public Member Functions | |
| virtual void | notifyUser (const Data &target, int status, const Data &msg, const DnsResourceRecordsByPtr &src, DnsResultSink *sink) |
Definition at line 210 of file DnsStub.hxx.
| 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);
}

1.7.5.1