#include <ptclib/pdns.h>
Go to the source code of this file.
Namespaces | |
namespace | PDNS |
Classes | |
class | PDNS::NAPTRRecord |
Defines | |
#define | NAPTR_SRV 35 |
Functions | |
void | PDNS::PrintOn (ostream &strm) const |
NAPTRRecord * | PDNS::GetFirst (const char *service=NULL) |
NAPTRRecord * | PDNS::GetNext (const char *service=NULL) |
PDNS::NAPTRRecord * | PDNS::HandleDNSRecord (PDNS_RECORD dnsRecord, PDNS_RECORD results) |
void | PDNS::UnlockOrder () |
PBoolean | GetRecords (const PString &domain, NAPTRRecordList &recordList) |
void | SetENUMServers (const PStringArray &serverlist) |
Set the default ENUM domain search list. | |
PBoolean | ENUMLookup (const PString &dn, const PString &service, const PStringArray &domains, PString &URL) |
Perform a lookup of the specified DN using the specified service and domain list. | |
PBoolean | ENUMLookup (const PString &dn, const PString &service, PString &URL) |
Perform a lookup of the specified DN using the specified service using the default domain list. | |
void | SetRDSServers (const PStringArray &servers) |
Set the Default NAPTR server to lookup. | |
PBoolean | RDSLookup (const PURL &url, const PString &service, PStringList &dn) |
Perform a lookup of the specified url on the NAPTR server list (set by SetNAPTRServers) that uses the specified service. | |
PBoolean | RDSLookup (const PURL &url, const PString &service, const PStringArray &naptrSpaces, PStringList &returnStr) |
Perform a lookup of the specified url on the NAPTR on the specified server list that uses the specified service Returns the resultant corresponding signalling addresses. | |
Variables | |
PINDEX | PDNS::currentPos |
int | PDNS::lastOrder |
PBoolean | PDNS::orderLocked |
#define NAPTR_SRV 35 |
Perform a lookup of the specified DN using the specified service using the default domain list.
Returns the resultant URL.
This function uses the default domain list, which can be set by the SetENUMServers function
dn | DN to lookup |
service | ENUM service to use |
URL | resolved URL, if return value is true |
PBoolean ENUMLookup | ( | const PString & | dn, | |
const PString & | service, | |||
const PStringArray & | domains, | |||
PString & | URL | |||
) |
Perform a lookup of the specified DN using the specified service and domain list.
Returns the resultant URL
dn | DN to lookup |
service | ENUM service to use |
domains | list of ENUM domains to search |
URL | resolved URL, if return value is true |
PBoolean RDSLookup | ( | const PURL & | url, | |
const PString & | service, | |||
const PStringArray & | naptrSpaces, | |||
PStringList & | returnStr | |||
) |
Perform a lookup of the specified url on the NAPTR on the specified server list that uses the specified service Returns the resultant corresponding signalling addresses.
url | URL to lookup |
service | Service to use |
naptrSpaces | RDS Servers to lookup |
returnStr | resolved addresses, if return value is true |
PBoolean RDSLookup | ( | const PURL & | url, | |
const PString & | service, | |||
PStringList & | dn | |||
) |
Perform a lookup of the specified url on the NAPTR server list (set by SetNAPTRServers) that uses the specified service.
Returns the resultant corresponding signalling addresses
url | URL to lookup |
service | Service to use |
dn | resolved addresses, if return value is true |
void SetENUMServers | ( | const PStringArray & | serverlist | ) |
Set the default ENUM domain search list.
void SetRDSServers | ( | const PStringArray & | servers | ) |
Set the Default NAPTR server to lookup.