reSIProcate/stack  9694
Public Member Functions | Public Attributes
resip::DnsResult::SRV Class Reference

#include <DnsResult.hxx>

Collaboration diagram for resip::DnsResult::SRV:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SRV ()
bool operator< (const SRV &rhs) const

Public Attributes

Data key
int naptrpref
TransportType transport
int priority
int weight
int port
Data target

Detailed Description

Definition at line 149 of file DnsResult.hxx.


Constructor & Destructor Documentation

DnsResult::SRV::SRV ( )

Definition at line 713 of file DnsResult.cxx.

                  : priority(0), weight(0), port(0)
{
    // .kw. member "transport" is not initialized. good default?
}

Member Function Documentation

bool DnsResult::SRV::operator< ( const SRV rhs) const

Definition at line 719 of file DnsResult.cxx.

References naptrpref, priority, resip::DnsResult::target(), target, transport, and weight.

{
   if (naptrpref < rhs.naptrpref)
   {
      return true;
   }
   else if(naptrpref == rhs.naptrpref)
   {
      if (transport < rhs.transport)
      {
         return true;
      }
      else if (transport == rhs.transport)
      {
         if (priority < rhs.priority)
         {
            return true;
         }
         else if (priority == rhs.priority)
         {
            if (weight < rhs.weight)
            {
               return true;
            }
            else if (weight == rhs.weight)
            {
               if (target < rhs.target)
               {
                  return true;
               }
            }
         }
      }
   }
   return false;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 156 of file DnsResult.hxx.

Referenced by resip::DnsResult::onDnsResult(), and resip::DnsResult::primeResults().

Definition at line 158 of file DnsResult.hxx.

Referenced by resip::DnsResult::onDnsResult(), and operator<().

Definition at line 162 of file DnsResult.hxx.

Referenced by resip::DnsResult::onDnsResult(), and resip::DnsResult::primeResults().

Definition at line 161 of file DnsResult.hxx.

Referenced by resip::DnsResult::onDnsResult(), and operator<().


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