Lines Matching refs:resolver_state_
104 if (!resolver_state_.get()) { in Start()
115 resolver_state_.reset(new DNSClientState); in Start()
116 int status = ares_->InitOptions(&resolver_state_->channel, in Start()
123 resolver_state_.reset(); in Start()
147 status = ares_->SetServersCsv(resolver_state_->channel, in Start()
153 resolver_state_.reset(); in Start()
157 ares_->SetLocalDev(resolver_state_->channel, interface_name_.c_str()); in Start()
161 time_->GetTimeMonotonic(&resolver_state_->start_time); in Start()
162 ares_->GetHostByName(resolver_state_->channel, hostname.c_str(), in Start()
177 if (!resolver_state_.get()) { in Stop()
185 ares_->Destroy(resolver_state_->channel); in Stop()
186 resolver_state_.reset(); in Stop()
216 ares_->ProcessFd(resolver_state_->channel, fd, ARES_SOCKET_BAD); in HandleDNSRead()
221 ares_->ProcessFd(resolver_state_->channel, ARES_SOCKET_BAD, fd); in HandleDNSWrite()
226 ares_->ProcessFd(resolver_state_->channel, ARES_SOCKET_BAD, ARES_SOCKET_BAD); in HandleTimeout()
304 resolver_state_->read_handlers; in RefreshHandles()
306 resolver_state_->write_handlers; in RefreshHandles()
308 resolver_state_->read_handlers.clear(); in RefreshHandles()
309 resolver_state_->write_handlers.clear(); in RefreshHandles()
312 int action_bits = ares_->GetSock(resolver_state_->channel, sockets, in RefreshHandles()
322 resolver_state_->read_handlers[sockets[i]] = old_read[sockets[i]]; in RefreshHandles()
324 resolver_state_->read_handlers[sockets[i]] = in RefreshHandles()
333 resolver_state_->write_handlers[sockets[i]] = old_write[sockets[i]]; in RefreshHandles()
335 resolver_state_->write_handlers[sockets[i]] = in RefreshHandles()
354 timersub(&now, &resolver_state_->start_time, &elapsed_time); in RefreshHandles()
378 struct timeval* tv = ares_->Timeout(resolver_state_->channel, in RefreshHandles()