3 * Copyright 2015 gRPC authors.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #ifndef GRPCPP_IMPL_CODEGEN_ASYNC_STREAM_H
20 #define GRPCPP_IMPL_CODEGEN_ASYNC_STREAM_H
22 #include <grpcpp/impl/codegen/async_stream_impl.h>
28 typedef ::grpc_impl::internal::ClientAsyncStreamingInterface
29 ClientAsyncStreamingInterface;
32 using AsyncReaderInterface = ::grpc_impl::internal::AsyncReaderInterface<R>;
35 using AsyncWriterInterface = ::grpc_impl::internal::AsyncWriterInterface<W>;
37 } // namespace internal
40 using ClientAsyncReaderInterface = ::grpc_impl::ClientAsyncReaderInterface<R>;
43 using ClientAsyncReader = ::grpc_impl::ClientAsyncReader<R>;
46 using ClientAsyncWriterInterface = ::grpc_impl::ClientAsyncWriterInterface<W>;
49 using ClientAsyncWriter = ::grpc_impl::ClientAsyncWriter<W>;
51 template <class W, class R>
52 using ClientAsyncReaderWriterInterface =
53 ::grpc_impl::ClientAsyncReaderWriterInterface<W, R>;
55 template <class W, class R>
56 using ClientAsyncReaderWriter = ::grpc_impl::ClientAsyncReaderWriter<W, R>;
58 template <class W, class R>
59 using ServerAsyncReaderInterface =
60 ::grpc_impl::ServerAsyncReaderInterface<W, R>;
62 template <class W, class R>
63 using ServerAsyncReader = ::grpc_impl::ServerAsyncReader<W, R>;
66 using ServerAsyncWriterInterface = ::grpc_impl::ServerAsyncWriterInterface<W>;
69 using ServerAsyncWriter = ::grpc_impl::ServerAsyncWriter<W>;
71 template <class W, class R>
72 using ServerAsyncReaderWriterInterface =
73 ::grpc_impl::ServerAsyncReaderWriterInterface<W, R>;
75 template <class W, class R>
76 using ServerAsyncReaderWriter = ::grpc_impl::ServerAsyncReaderWriter<W, R>;
80 using ClientAsyncReaderFactory =
81 ::grpc_impl::internal::ClientAsyncReaderFactory<R>;
84 using ClientAsyncWriterFactory =
85 ::grpc_impl::internal::ClientAsyncWriterFactory<W>;
87 template <class W, class R>
88 using ClientAsyncReaderWriterFactory =
89 ::grpc_impl::internal::ClientAsyncReaderWriterFactory<W, R>;
91 } // namespace internal
95 #endif // GRPCPP_IMPL_CODEGEN_ASYNC_STREAM_H