resolve_address.cc
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2018 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
19 
21 
22 #include "absl/strings/str_cat.h"
23 
25 #include <grpc/support/alloc.h>
26 
27 namespace grpc_core {
28 const char* kDefaultSecurePort = "https";
29 
30 namespace {
31 DNSResolver* g_dns_resolver;
32 }
33 
35 
36 void SetDNSResolver(DNSResolver* resolver) { g_dns_resolver = resolver; }
37 
38 DNSResolver* GetDNSResolver() { return g_dns_resolver; }
39 
41  return absl::StrCat("{", handle.keys[0], ",", handle.keys[1], "}");
42 }
43 
44 } // namespace grpc_core
grpc_core::kDefaultSecurePort
const char * kDefaultSecurePort
Definition: resolve_address.cc:28
absl::StrCat
std::string StrCat(const AlphaNum &a, const AlphaNum &b)
Definition: abseil-cpp/absl/strings/str_cat.cc:98
grpc_core
Definition: call_metric_recorder.h:31
event_engine.h
grpc_core::DNSResolver
Definition: resolve_address.h:42
resolve_address.h
testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
grpc_core::DNSResolver::kNullHandle
static constexpr TaskHandle kNullHandle
Definition: resolve_address.h:46
grpc_event_engine::experimental::EventEngine::DNSResolver::LookupTaskHandle
Task handle for DNS Resolution requests.
Definition: event_engine.h:292
grpc_core::DNSResolver::TaskHandle
::grpc_event_engine::experimental::EventEngine::DNSResolver::LookupTaskHandle TaskHandle
Definition: resolve_address.h:45
grpc_core::GetDNSResolver
DNSResolver * GetDNSResolver()
Definition: resolve_address.cc:38
alloc.h
grpc_core::SetDNSResolver
void SetDNSResolver(DNSResolver *resolver)
Definition: resolve_address.cc:36
grpc_core::DNSResolver::HandleToString
static std::string HandleToString(TaskHandle handle)
Definition: resolve_address.cc:40
handle
static csh handle
Definition: test_arm_regression.c:16
port_platform.h


grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:04