GRPC Core  18.0.0
endpoint.h
Go to the documentation of this file.
1 // Copyright 2021 The gRPC Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 #ifndef GRPC_CORE_LIB_IOMGR_EVENT_ENGINE_ENDPOINT_H
15 #define GRPC_CORE_LIB_IOMGR_EVENT_ENGINE_ENDPOINT_H
16 
18 
19 #ifdef GRPC_USE_EVENT_ENGINE
21 
24 
25 struct grpc_event_engine_endpoint {
26  grpc_endpoint base;
27  std::unique_ptr<grpc_event_engine::experimental::EventEngine::Endpoint>
28  endpoint;
29  std::string peer_address;
30  std::string local_address;
31  grpc_resource_user* ru = nullptr;
32  std::aligned_storage<
35  std::aligned_storage<
38 };
39 
43 grpc_event_engine_endpoint* grpc_tcp_server_endpoint_create(
44  std::unique_ptr<grpc_event_engine::experimental::EventEngine::Endpoint> ee);
45 
50  absl::string_view peer_address);
51 
52 #endif
53 #endif // GRPC_CORE_LIB_IOMGR_EVENT_ENGINE_ENDPOINT_H
Definition: slice_allocator.h:32
An array of arguments that can be passed around.
Definition: grpc_types.h:132
Definition: endpoint.h:106
Definition: resource_quota.cc:65
grpc_endpoint * grpc_tcp_create(grpc_fd *fd, const grpc_channel_args *args, const char *peer_string)
DiscoveryMechanismType type
Definition: xds_cluster_resolver.cc:73