PTLib  Version 2.10.4
enum.h File Reference
#include <ptclib/pdns.h>

Go to the source code of this file.

Classes

class  PDNS::NAPTRRecord

Namespaces

namespace  PDNS

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::NAPTRRecordPDNS::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 Documentation

#define NAPTR_SRV   35

Function Documentation

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

Returns:
true if the DN could be resolved, else false
Parameters:
dnDN to lookup
serviceENUM service to use
domainslist of ENUM domains to search
URLresolved URL, if return value is true
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.

Returns the resultant URL.

This function uses the default domain list, which can be set by the SetENUMServers function

Returns:
true if the DN could be resolved, else false
Parameters:
dnDN to lookup
serviceENUM service to use
URLresolved URL, if return value is true
PBoolean GetRecords ( const PString domain,
NAPTRRecordList &  recordList 
) [inline]

Referenced by GetMXRecords(), and GetSRVRecords().

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

Returns:
true if the url could be resolved, else false
Parameters:
urlURL to lookup
serviceService to use
dnresolved addresses, 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.

Returns:
true if the url could be resolved, else false
Parameters:
urlURL to lookup
serviceService to use
naptrSpacesRDS Servers to lookup
returnStrresolved 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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines