xmppd::resolver::resend_service Class Reference

a SRV service to resolve and the resend destinations More...

#include <resolver.h>

Public Member Functions

 resend_service (xmlnode resend)
bool is_explicit_service () const
Glib::ustring const & get_service_prefix () const
xmppd::jabberid get_resend_host () const

Detailed Description

a SRV service to resolve and the resend destinations

This class stores the configuration for a service to resolve in DNS. Each instance of this class represent the configuration data of a single <resend/> element in the resolver configuration


Constructor & Destructor Documentation

xmppd::resolver::resend_service::resend_service ( xmlnode  resend  ) 

construct a resend_service

Parameters:
resend the xmlnode of the <resend/> element that should be represented by this instance
Exceptions:
std::invalid_argument if configuration is not correct

References NS_JABBERD_CONFIG_DNSRV, xhash_free(), xhash_new(), xhash_put(), xmlnode_get_attrib_ns(), xmlnode_get_data(), and xmlnode_get_tags().


Member Function Documentation

xmppd::jabberid xmppd::resolver::resend_service::get_resend_host (  )  const

select one of the resend_hosts for this service

Returns:
choosen resend_host
Glib::ustring const & xmppd::resolver::resend_service::get_service_prefix (  )  const

get the service prefix for SRV records that have to be resolved

bool xmppd::resolver::resend_service::is_explicit_service (  )  const

does this represent a service lookup (or plain AAAA+A resolving?)

Returns:
true if this is for SRV lookups, false for plain AAAA+A lookup service

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

Generated on Thu Mar 11 06:00:15 2010 for jabberd14 by  doxygen 1.6.1