Exemplo n.º 1
0
HttpResolver::HttpResolver(DnsCachedResolver* dns_client,
                           int address_family) :
  BaseResolver(dns_client),
  _address_family(address_family)
{
  LOG_DEBUG("Creating HTTP resolver");

  // Create the blacklist.
  create_blacklist();

  LOG_STATUS("Created HTTP resolver");
}
Exemplo n.º 2
0
HttpResolver::HttpResolver(DnsCachedResolver* dns_client,
                           int address_family,
                           int blacklist_duration) :
  BaseResolver(dns_client),
  _address_family(address_family)
{
  TRC_DEBUG("Creating HTTP resolver");

  // Create the blacklist.
  create_blacklist(blacklist_duration);

  TRC_STATUS("Created HTTP resolver");
}
Exemplo n.º 3
0
SIPResolver::SIPResolver(DnsCachedResolver* dns_client,
                         int blacklist_duration) :
  BaseResolver(dns_client)
{
  TRC_DEBUG("Creating SIP resolver");

  // Create the NAPTR cache.
  std::map<std::string, int> naptr_services;
  naptr_services["SIP+D2U"] = IPPROTO_UDP;
  naptr_services["SIP+D2T"] = IPPROTO_TCP;
  create_naptr_cache(naptr_services);

  // Create the SRV cache.
  create_srv_cache();

  // Create the blacklist.
  create_blacklist(blacklist_duration);

  TRC_STATUS("Created SIP resolver");
}