| 170 | } |
| 171 | |
| 172 | void DNSCache::add(const std::string& host, const std::string& service, const std::vector<NetworkAddress>& addresses) { |
| 173 | hostnameToAddresses[host + ":" + service] = addresses; |
| 174 | } |
| 175 | |
| 176 | void DNSCache::remove(const std::string& host, const std::string& service) { |
| 177 | auto it = hostnameToAddresses.find(host + ":" + service); |
no outgoing calls