• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *
3  * Copyright 2015 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 GRPCPP_IMPL_CODEGEN_SYNC_STREAM_H
20 #define GRPCPP_IMPL_CODEGEN_SYNC_STREAM_H
21 
22 #include <grpcpp/impl/codegen/sync_stream_impl.h>
23 
24 namespace grpc {
25 
26 namespace internal {
27 
28 typedef ::grpc_impl::internal::ClientStreamingInterface
29     ClientStreamingInterface;
30 
31 typedef ::grpc_impl::internal::ServerStreamingInterface
32     ServerStreamingInterface;
33 
34 template <class R>
35 using ReaderInterface = ::grpc_impl::internal::ReaderInterface<R>;
36 
37 template <class W>
38 using WriterInterface = ::grpc_impl::internal::WriterInterface<W>;
39 
40 template <class R>
41 using ClientReaderFactory = ::grpc_impl::internal::ClientReaderFactory<R>;
42 
43 template <class W>
44 using ClientWriterFactory = ::grpc_impl::internal::ClientWriterFactory<W>;
45 
46 template <class W, class R>
47 using ClientReaderWriterFactory =
48     ::grpc_impl::internal::ClientReaderWriterFactory<W, R>;
49 
50 }  // namespace internal
51 
52 template <class R>
53 using ClientReaderInterface = ::grpc_impl::ClientReaderInterface<R>;
54 
55 template <class R>
56 using ClientReader = ::grpc_impl::ClientReader<R>;
57 
58 template <class W>
59 using ClientWriterInterface = ::grpc_impl::ClientWriterInterface<W>;
60 
61 template <class W>
62 using ClientWriter = ::grpc_impl::ClientWriter<W>;
63 
64 template <class W, class R>
65 using ClientReaderWriterInterface =
66     ::grpc_impl::ClientReaderWriterInterface<W, R>;
67 
68 template <class W, class R>
69 using ClientReaderWriter = ::grpc_impl::ClientReaderWriter<W, R>;
70 
71 template <class R>
72 using ServerReaderInterface = ::grpc_impl::ServerReaderInterface<R>;
73 
74 template <class R>
75 using ServerReader = ::grpc_impl::ServerReader<R>;
76 
77 template <class W>
78 using ServerWriterInterface = ::grpc_impl::ServerWriterInterface<W>;
79 
80 template <class W>
81 using ServerWriter = ::grpc_impl::ServerWriter<W>;
82 
83 template <class W, class R>
84 using ServerReaderWriterInterface =
85     ::grpc_impl::ServerReaderWriterInterface<W, R>;
86 
87 template <class W, class R>
88 using ServerReaderWriter = ::grpc_impl::ServerReaderWriter<W, R>;
89 
90 template <class RequestType, class ResponseType>
91 using ServerUnaryStreamer =
92     ::grpc_impl::ServerUnaryStreamer<RequestType, ResponseType>;
93 
94 template <class RequestType, class ResponseType>
95 using ServerSplitStreamer =
96     ::grpc_impl::ServerSplitStreamer<RequestType, ResponseType>;
97 
98 }  // namespace grpc
99 
100 #endif  // GRPCPP_IMPL_CODEGEN_SYNC_STREAM_H
101