| 166 | } |
| 167 | |
| 168 | size_t HostPort::HashCode() const { |
| 169 | size_t seed = 0; |
| 170 | boost::hash_combine(seed, host_); |
| 171 | boost::hash_combine(seed, port_); |
| 172 | return seed; |
| 173 | } |
| 174 | |
| 175 | Status HostPort::ParseString(const string& str, uint16_t default_port) { |
| 176 | std::pair<string, string> p = strings::Split(str, strings::delimiter::Limit(":", 1)); |
no outgoing calls