19 #ifndef GRPCPP_CREATE_CHANNEL_POSIX_H
20 #define GRPCPP_CREATE_CHANNEL_POSIX_H
26 #ifdef GPR_SUPPORT_CHANNELS_FROM_FD
28 static inline std::shared_ptr<Channel> CreateInsecureChannelFromFd(
30 return ::grpc_impl::CreateInsecureChannelFromFd(target, fd);
33 static inline std::shared_ptr<Channel> CreateCustomInsecureChannelFromFd(
35 return ::grpc_impl::CreateCustomInsecureChannelFromFd(target, fd, args);
38 namespace experimental {
40 static inline std::shared_ptr<Channel>
41 CreateCustomInsecureChannelWithInterceptorsFromFd(
43 std::unique_ptr<std::vector<
44 std::unique_ptr<experimental::ClientInterceptorFactoryInterface>>>
45 interceptor_creators) {
46 return ::grpc_impl::experimental::
47 CreateCustomInsecureChannelWithInterceptorsFromFd(
48 target, fd, args, std::move(interceptor_creators));
53 #endif // GPR_SUPPORT_CHANNELS_FROM_FD
57 #endif // GRPCPP_CREATE_CHANNEL_POSIX_H