1#if !defined(RESIP_DNSINTERFACE_HXX)
2#define RESIP_DNSINTERFACE_HXX
31 const char*
name() const noexcept
override {
return "DnsInterface::Exception"; }
98 typedef std::map<std::pair<TransportType, IpVersion>,
unsigned int>
TransportMap;
Handles cross-platform sockets compatibility.
The abstract base-class for all exceptions thrown by resip code.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Exception(const Data &msg, const Data &file, const int line)
const char * name() const noexcept override
const Data * getSupportedNaptrType(TransportType type)
void addTransportType(TransportType type, IpVersion version)
TupleMarkManager mMarkManager
void lookup(DnsResult *res, const Uri &uri)
TransportMap mSupportedTransports
std::map< Data, unsigned int > SupportedNaptrMap
bool setUdpOnlyOnNumeric(bool value)
TupleMarkManager & getMarkManager()
void logSupportedTransports()
bool isSupportedProtocol(TransportType t)
bool getUdpOnlyOnNumeric() const
SupportedNaptrMap mSupportedNaptrs
std::map< std::pair< TransportType, IpVersion >, unsigned int > TransportMap
void removeTransportType(TransportType type, IpVersion version)
bool isSupported(const Data &service)
DnsResult * createDnsResult(DnsHandler *handler=0)
Represents the "SIP-URI" and "SIPS-URI" elements in the RFC 3261 grammar.
dcm! – add UnusedChecking(_enum) below;
std::mutex Mutex
A semaphore that can be locked by only one thread at a time.
TransportType
An enumeration of transport protocols.
IpVersion
An enumeration of IP versions.