[reSIProcate] Question on TransactionState::handle
Hello,
In this function, we do not use "result". Is this correct?
// called by DnsResult
void
TransactionState::handle(DnsResult* result)
{
// got a DNS response, so send the current message
StackLog (<< *this << " got DNS result: " << *result);
if (mTarget.getType() == UNKNOWN_TRANSPORT)
{
assert(mDnsResult);
switch (mDnsResult->available())
{
case DnsResult::Available:
mTarget = mDnsResult->next();
processReliability(mTarget.getType());
mController.mTransportSelector.transmit(mMsgToRetransmit,
mTarget);
break;
case DnsResult::Finished:
processNoDnsResults();
break;
case DnsResult::Pending:
break;
case DnsResult::Destroyed:
default:
assert(0);
break;
}
}
else
{
// can't be retransmission
sendToWire(mMsgToRetransmit, false);
}
}
--
Sandeep Sharma <ssharma@xxxxxxxxxx>