< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

RE: [reSIProcate] Question on TransactionState::handle


I think 'result' and 'mDnsResult' should be the same thing.

-----Original Message-----
From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Sandeep Sharma
Sent: Thursday, September 01, 2005 2:37 PM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [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>

_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel