Home
last modified time | relevance | path

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

/external/grpc-grpc/src/core/ext/filters/client_channel/resolver/dns/c_ares/
Dgrpc_ares_wrapper.cc184 grpc_lb_addresses** lb_addresses = r->lb_addrs_out; in on_hostbyname_done_locked() local
185 if (*lb_addresses == nullptr) { in on_hostbyname_done_locked()
186 *lb_addresses = grpc_lb_addresses_create(0, nullptr); in on_hostbyname_done_locked()
188 size_t prev_naddr = (*lb_addresses)->num_addresses; in on_hostbyname_done_locked()
192 (*lb_addresses)->num_addresses += i; in on_hostbyname_done_locked()
193 (*lb_addresses)->addresses = static_cast<grpc_lb_address*>( in on_hostbyname_done_locked()
194 gpr_realloc((*lb_addresses)->addresses, in on_hostbyname_done_locked()
195 sizeof(grpc_lb_address) * (*lb_addresses)->num_addresses)); in on_hostbyname_done_locked()
196 for (i = prev_naddr; i < (*lb_addresses)->num_addresses; i++) { in on_hostbyname_done_locked()
207 *lb_addresses, i, &addr, addr_len, in on_hostbyname_done_locked()
[all …]
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dgrpclb.cc449 grpc_lb_addresses* lb_addresses = in ProcessServerlist() local
485 grpc_lb_addresses_set_address(lb_addresses, addr_idx, &addr.addr, addr.len, in ProcessServerlist()
491 return lb_addresses; in ProcessServerlist()
928 grpc_lb_addresses* lb_addresses = in ExtractBalancerAddresses() local
938 lb_addresses, lb_addresses_idx++, addresses->addresses[i].address.addr, in ExtractBalancerAddresses()
943 return lb_addresses; in ExtractBalancerAddresses()
958 grpc_lb_addresses* lb_addresses = ExtractBalancerAddresses(addresses); in BuildBalancerChannelArgs() local
995 grpc_lb_addresses_create_channel_arg(lb_addresses), in BuildBalancerChannelArgs()
1015 grpc_lb_addresses_destroy(lb_addresses); in BuildBalancerChannelArgs()