Home
last modified time | relevance | path

Searched refs:client_ip_hex_ (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc/src/cpp/server/load_reporter/
Dload_data_store.cc90 client_ip_hex_ = client_ip_and_token.substr(cur_pos, ip_hex_size); in LoadRecordKey()
102 if (client_ip_hex_.empty()) { in GetClientIpBytes()
104 } else if (client_ip_hex_.size() == kIpv4AddressLength) { in GetClientIpBytes()
106 if (sscanf(client_ip_hex_.c_str(), "%x", &ip_bytes) != 1) { in GetClientIpBytes()
109 client_ip_hex_.c_str()); in GetClientIpBytes()
115 } else if (client_ip_hex_.size() == kIpv6AddressLength) { in GetClientIpBytes()
118 if (sscanf(client_ip_hex_.substr(i * 8, (i + 1) * 8).c_str(), "%x", in GetClientIpBytes()
123 client_ip_hex_.substr(i * 8, (i + 1) * 8).c_str()); in GetClientIpBytes()
Dload_data_store.h75 client_ip_hex_(std::move(client_ip_hex)) {} in LoadRecordKey()
82 ", user_id_=" + user_id_ + ", client_ip_hex_=" + client_ip_hex_ + in ToString()
88 user_id_ == other.user_id_ && client_ip_hex_ == other.client_ip_hex_;
98 const grpc::string& client_ip_hex() const { return client_ip_hex_; } in client_ip_hex()
111 hash_combine(&h, k.client_ip_hex_); in operator()
120 grpc::string client_ip_hex_; variable