reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::DnsInterface Class Reference

#include <DnsInterface.hxx>

Classes

class  Exception
 

Public Member Functions

 DnsInterface (DnsStub &dnsStub, bool useDnsVip=false)
 
virtual ~DnsInterface ()
 
void addTransportType (TransportType type, IpVersion version)
 
void removeTransportType (TransportType type, IpVersion version)
 
bool isSupported (const Data &service)
 
bool isSupported (TransportType t, IpVersion version)
 
bool isSupportedProtocol (TransportType t)
 
int supportedProtocols ()
 
DnsResult * createDnsResult (DnsHandler *handler=0)
 
void lookup (DnsResult *res, const Uri &uri)
 
TupleMarkManager & getMarkManager ()
 
bool setUdpOnlyOnNumeric (bool value)
 
bool getUdpOnlyOnNumeric () const
 

Protected Types

typedef std::map< Data, unsigned int > SupportedNaptrMap
 
typedef std::map< std::pair< TransportType, IpVersion >, unsigned int > TransportMap
 

Protected Member Functions

const Data * getSupportedNaptrType (TransportType type)
 
void logSupportedTransports ()
 

Protected Attributes

Mutex mSupportedMutex
 
SupportedNaptrMap mSupportedNaptrs
 
TransportMap mSupportedTransports
 
bool mUdpOnlyOnNumeric
 
DnsStub & mDnsStub
 
RRVip mVip
 
TupleMarkManager mMarkManager
 

Friends

class DnsResult
 

Detailed Description

Definition at line 24 of file DnsInterface.hxx.

Member Typedef Documentation

◆ SupportedNaptrMap

typedef std::map<Data, unsigned int> resip::DnsInterface::SupportedNaptrMap
protected

Definition at line 96 of file DnsInterface.hxx.

◆ TransportMap

typedef std::map<std::pair<TransportType, IpVersion>, unsigned int> resip::DnsInterface::TransportMap
protected

Definition at line 98 of file DnsInterface.hxx.

Constructor & Destructor Documentation

◆ DnsInterface()

DnsInterface::DnsInterface ( DnsStub &  dnsStub,
bool  useDnsVip = false 
)

Definition at line 35 of file DnsInterface.cxx.

◆ ~DnsInterface()

DnsInterface::~DnsInterface ( )
virtual

Definition at line 45 of file DnsInterface.cxx.

Member Function Documentation

◆ addTransportType()

void DnsInterface::addTransportType ( TransportType  type,
IpVersion  version 
)

Definition at line 50 of file DnsInterface.cxx.

◆ createDnsResult()

DnsResult * DnsInterface::createDnsResult ( DnsHandler *  handler = 0)

Definition at line 185 of file DnsInterface.cxx.

◆ getMarkManager()

TupleMarkManager & resip::DnsInterface::getMarkManager ( )
inline

Definition at line 75 of file DnsInterface.hxx.

◆ getSupportedNaptrType()

const Data * DnsInterface::getSupportedNaptrType ( TransportType  type)
protected

Definition at line 102 of file DnsInterface.cxx.

◆ getUdpOnlyOnNumeric()

bool resip::DnsInterface::getUdpOnlyOnNumeric ( ) const
inline

Definition at line 83 of file DnsInterface.hxx.

◆ isSupported() [1/2]

bool DnsInterface::isSupported ( const Data &  service)

Definition at line 149 of file DnsInterface.cxx.

◆ isSupported() [2/2]

bool DnsInterface::isSupported ( TransportType  t,
IpVersion  version 
)

Definition at line 156 of file DnsInterface.cxx.

◆ isSupportedProtocol()

bool DnsInterface::isSupportedProtocol ( TransportType  t)

Definition at line 165 of file DnsInterface.cxx.

◆ logSupportedTransports()

void DnsInterface::logSupportedTransports ( )
protected

Definition at line 133 of file DnsInterface.cxx.

◆ lookup()

void DnsInterface::lookup ( DnsResult *  res,
const Uri &  uri 
)

Definition at line 192 of file DnsInterface.cxx.

◆ removeTransportType()

void DnsInterface::removeTransportType ( TransportType  type,
IpVersion  version 
)

Definition at line 65 of file DnsInterface.cxx.

◆ setUdpOnlyOnNumeric()

bool resip::DnsInterface::setUdpOnlyOnNumeric ( bool  value)
inline

Definition at line 77 of file DnsInterface.hxx.

◆ supportedProtocols()

int DnsInterface::supportedProtocols ( )

Definition at line 178 of file DnsInterface.cxx.

Friends And Related Symbol Documentation

◆ DnsResult

friend class DnsResult
friend

Definition at line 94 of file DnsInterface.hxx.

Member Data Documentation

◆ mDnsStub

DnsStub& resip::DnsInterface::mDnsStub
protected

Definition at line 104 of file DnsInterface.hxx.

◆ mMarkManager

TupleMarkManager resip::DnsInterface::mMarkManager
protected

Definition at line 106 of file DnsInterface.hxx.

◆ mSupportedMutex

Mutex resip::DnsInterface::mSupportedMutex
protected

Definition at line 95 of file DnsInterface.hxx.

◆ mSupportedNaptrs

SupportedNaptrMap resip::DnsInterface::mSupportedNaptrs
protected

Definition at line 97 of file DnsInterface.hxx.

◆ mSupportedTransports

TransportMap resip::DnsInterface::mSupportedTransports
protected

Definition at line 99 of file DnsInterface.hxx.

◆ mUdpOnlyOnNumeric

bool resip::DnsInterface::mUdpOnlyOnNumeric
protected

Definition at line 102 of file DnsInterface.hxx.

◆ mVip

RRVip resip::DnsInterface::mVip
protected

Definition at line 105 of file DnsInterface.hxx.


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