GRPC Core  49.0.0
create_channel_from_endpoint.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2025 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  */
18 
19 #ifndef GRPC_CREATE_CHANNEL_FROM_ENDPOINT_H
20 #define GRPC_CREATE_CHANNEL_FROM_ENDPOINT_H
21 
22 #include <grpc/grpc.h>
23 #include <grpc/impl/grpc_types.h>
25 #include <stddef.h>
26 
27 #ifdef __cplusplus
29 
30 #include <memory>
31 namespace grpc_core::experimental {
32 
45 grpc_channel* CreateChannelFromEndpoint(
46  std::unique_ptr<grpc_event_engine::experimental::EventEngine::Endpoint>
47  endpoint,
48  grpc_channel_credentials* creds, const grpc_channel_args* args);
49 
50 } // namespace grpc_core::experimental
51 
52 #endif // __cplusplus
53 
54 #endif /* GRPC_CREATE_CHANNEL_FROM_ENDPOINT_H */
event_engine.h
grpc_channel_args
An array of arguments that can be passed around.
Definition: grpc_types.h:130
grpc_types.h
grpc_channel_credentials
struct grpc_channel_credentials grpc_channel_credentials
— grpc_channel_credentials object.
Definition: grpc.h:286
grpc_core::experimental
Definition: grpc_audit_logging.h:32
grpc.h
grpc_channel
struct grpc_channel grpc_channel
The Channel interface allows creation of Call objects.
Definition: grpc_types.h:60
port_platform.h