| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.13"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>GRPC C++: include/grpcpp/generic/generic_stub.h Source File</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript"> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-60127042-1', 'auto'); ga('send', 'pageview'); </script></head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">GRPC C++
-  <span id="projectnumber">1.13.0-dev</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.13 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- </script>
- <div id="main-nav"></div>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div id="nav-path" class="navpath">
- <ul>
- <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_412f9a3d5dfcba8716486cd870ef4586.html">grpcpp</a></li><li class="navelem"><a class="el" href="dir_d0687bfb49a2d724b4c01763956c068f.html">generic</a></li> </ul>
- </div>
- </div><!-- top -->
- <div class="header">
- <div class="headertitle">
- <div class="title">generic_stub.h</div> </div>
- </div><!--header-->
- <div class="contents">
- <a href="grpcpp_2generic_2generic__stub_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * Copyright 2015 gRPC authors.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> *</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> */</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#ifndef GRPCPP_GENERIC_GENERIC_STUB_H</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#define GRPCPP_GENERIC_GENERIC_STUB_H</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="grpcpp_2support_2async__stream_8h.html">grpcpp/support/async_stream.h</a>></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="grpcpp_2support_2async__unary__call_8h.html">grpcpp/support/async_unary_call.h</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <<a class="code" href="grpcpp_2support_2byte__buffer_8h.html">grpcpp/support/byte_buffer.h</a>></span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">namespace </span><a class="code" href="namespacegrpc.html">grpc</a> {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="namespacegrpc.html#aba53fb6f2502caa167e9528e5c560539"> 28</a></span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1_completion_queue.html">CompletionQueue</a>;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">typedef</span> <a class="code" href="classgrpc_1_1_client_async_reader_writer.html">ClientAsyncReaderWriter<ByteBuffer, ByteBuffer></a></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <a class="code" href="namespacegrpc.html#aba53fb6f2502caa167e9528e5c560539">GenericClientAsyncReaderWriter</a>;</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="namespacegrpc.html#a7ee9bd108774bc00defacc5b4fb695df"> 31</a></span> <span class="keyword">typedef</span> <a class="code" href="classgrpc_1_1_client_async_response_reader.html">ClientAsyncResponseReader<ByteBuffer></a> <a class="code" href="namespacegrpc.html#a7ee9bd108774bc00defacc5b4fb695df">GenericClientAsyncResponseReader</a>;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classgrpc_1_1_generic_stub.html"> 35</a></span> <span class="keyword">class </span><a class="code" href="classgrpc_1_1_generic_stub.html">GenericStub</a> final {</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classgrpc_1_1_generic_stub.html#a1523f381907ac18b841bb4064f2a3b88"> 37</a></span>  <span class="keyword">explicit</span> <a class="code" href="classgrpc_1_1_generic_stub.html#a1523f381907ac18b841bb4064f2a3b88">GenericStub</a>(std::shared_ptr<ChannelInterface> channel)</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  : channel_(channel) {}</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  std::unique_ptr<GenericClientAsyncReaderWriter> <a class="code" href="classgrpc_1_1_generic_stub.html#ae1d079fa84bb70e895fe1a62ac8c0a43">PrepareCall</a>(</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="classgrpc_1_1_client_context.html">ClientContext</a>* context, <span class="keyword">const</span> <a class="code" href="namespacegrpc.html#ab04a87625da3bf85cdaf5e7856b00203">grpc::string</a>& method, <a class="code" href="classgrpc_1_1_completion_queue.html">CompletionQueue</a>* cq);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  std::unique_ptr<GenericClientAsyncResponseReader> <a class="code" href="classgrpc_1_1_generic_stub.html#a7d7371d16df0f556b4d6d1e5366aebd7">PrepareUnaryCall</a>(</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="classgrpc_1_1_client_context.html">ClientContext</a>* context, <span class="keyword">const</span> <a class="code" href="namespacegrpc.html#ab04a87625da3bf85cdaf5e7856b00203">grpc::string</a>& method,</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">const</span> <a class="code" href="classgrpc_1_1_byte_buffer.html">ByteBuffer</a>& request, <a class="code" href="classgrpc_1_1_completion_queue.html">CompletionQueue</a>* cq);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  std::unique_ptr<GenericClientAsyncReaderWriter> <a class="code" href="classgrpc_1_1_generic_stub.html#a29d999cf06468cfe12d3cdc912cb0afb">Call</a>(</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="classgrpc_1_1_client_context.html">ClientContext</a>* context, <span class="keyword">const</span> <a class="code" href="namespacegrpc.html#ab04a87625da3bf85cdaf5e7856b00203">grpc::string</a>& method, <a class="code" href="classgrpc_1_1_completion_queue.html">CompletionQueue</a>* cq,</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordtype">void</span>* tag);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  std::shared_ptr<ChannelInterface> channel_;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> };</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> } <span class="comment">// namespace grpc</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="preprocessor">#endif // GRPCPP_GENERIC_GENERIC_STUB_H</span></div><div class="ttc" id="classgrpc_1_1_client_async_reader_writer_html"><div class="ttname"><a href="classgrpc_1_1_client_async_reader_writer.html">grpc::ClientAsyncReaderWriter</a></div><div class="ttdoc">Async client-side interface for bi-directional streaming, where the outgoing message stream going to ...</div><div class="ttdef"><b>Definition:</b> async_stream.h:491</div></div>
- <div class="ttc" id="namespacegrpc_html_ab04a87625da3bf85cdaf5e7856b00203"><div class="ttname"><a href="namespacegrpc.html#ab04a87625da3bf85cdaf5e7856b00203">grpc::string</a></div><div class="ttdeci">std::string string</div><div class="ttdef"><b>Definition:</b> config.h:35</div></div>
- <div class="ttc" id="classgrpc_1_1_generic_stub_html_a7d7371d16df0f556b4d6d1e5366aebd7"><div class="ttname"><a href="classgrpc_1_1_generic_stub.html#a7d7371d16df0f556b4d6d1e5366aebd7">grpc::GenericStub::PrepareUnaryCall</a></div><div class="ttdeci">std::unique_ptr< GenericClientAsyncResponseReader > PrepareUnaryCall(ClientContext *context, const grpc::string &method, const ByteBuffer &request, CompletionQueue *cq)</div><div class="ttdoc">Setup a unary call to a named method method using context, and don&#39;t start it. </div></div>
- <div class="ttc" id="classgrpc_1_1_client_async_response_reader_html"><div class="ttname"><a href="classgrpc_1_1_client_async_response_reader.html">grpc::ClientAsyncResponseReader</a></div><div class="ttdoc">Async API for client-side unary RPCs, where the message response received from the server is of type ...</div><div class="ttdef"><b>Definition:</b> async_unary_call.h:98</div></div>
- <div class="ttc" id="classgrpc_1_1_client_context_html"><div class="ttname"><a href="classgrpc_1_1_client_context.html">grpc::ClientContext</a></div><div class="ttdoc">A ClientContext allows the person implementing a service client to: </div><div class="ttdef"><b>Definition:</b> client_context.h:162</div></div>
- <div class="ttc" id="classgrpc_1_1_generic_stub_html_a29d999cf06468cfe12d3cdc912cb0afb"><div class="ttname"><a href="classgrpc_1_1_generic_stub.html#a29d999cf06468cfe12d3cdc912cb0afb">grpc::GenericStub::Call</a></div><div class="ttdeci">std::unique_ptr< GenericClientAsyncReaderWriter > Call(ClientContext *context, const grpc::string &method, CompletionQueue *cq, void *tag)</div><div class="ttdoc">DEPRECATED for multi-threaded use Begin a call to a named method method using context. </div></div>
- <div class="ttc" id="namespacegrpc_html_a7ee9bd108774bc00defacc5b4fb695df"><div class="ttname"><a href="namespacegrpc.html#a7ee9bd108774bc00defacc5b4fb695df">grpc::GenericClientAsyncResponseReader</a></div><div class="ttdeci">ClientAsyncResponseReader< ByteBuffer > GenericClientAsyncResponseReader</div><div class="ttdef"><b>Definition:</b> generic_stub.h:31</div></div>
- <div class="ttc" id="namespacegrpc_html"><div class="ttname"><a href="namespacegrpc.html">grpc</a></div><div class="ttdoc">An Alarm posts the user provided tag to its associated completion queue upon expiry or cancellation...</div><div class="ttdef"><b>Definition:</b> alarm.h:31</div></div>
- <div class="ttc" id="grpcpp_2support_2async__stream_8h_html"><div class="ttname"><a href="grpcpp_2support_2async__stream_8h.html">async_stream.h</a></div></div>
- <div class="ttc" id="grpcpp_2support_2byte__buffer_8h_html"><div class="ttname"><a href="grpcpp_2support_2byte__buffer_8h.html">byte_buffer.h</a></div></div>
- <div class="ttc" id="classgrpc_1_1_completion_queue_html"><div class="ttname"><a href="classgrpc_1_1_completion_queue.html">grpc::CompletionQueue</a></div><div class="ttdoc">A thin wrapper around grpc_completion_queue (see src/core/lib/surface/completion_queue.h). </div><div class="ttdef"><b>Definition:</b> completion_queue.h:94</div></div>
- <div class="ttc" id="grpcpp_2support_2async__unary__call_8h_html"><div class="ttname"><a href="grpcpp_2support_2async__unary__call_8h.html">async_unary_call.h</a></div></div>
- <div class="ttc" id="namespacegrpc_html_aba53fb6f2502caa167e9528e5c560539"><div class="ttname"><a href="namespacegrpc.html#aba53fb6f2502caa167e9528e5c560539">grpc::GenericClientAsyncReaderWriter</a></div><div class="ttdeci">ClientAsyncReaderWriter< ByteBuffer, ByteBuffer > GenericClientAsyncReaderWriter</div><div class="ttdef"><b>Definition:</b> generic_stub.h:28</div></div>
- <div class="ttc" id="classgrpc_1_1_generic_stub_html"><div class="ttname"><a href="classgrpc_1_1_generic_stub.html">grpc::GenericStub</a></div><div class="ttdoc">Generic stubs provide a type-unsafe interface to call gRPC methods by name. </div><div class="ttdef"><b>Definition:</b> generic_stub.h:35</div></div>
- <div class="ttc" id="classgrpc_1_1_generic_stub_html_a1523f381907ac18b841bb4064f2a3b88"><div class="ttname"><a href="classgrpc_1_1_generic_stub.html#a1523f381907ac18b841bb4064f2a3b88">grpc::GenericStub::GenericStub</a></div><div class="ttdeci">GenericStub(std::shared_ptr< ChannelInterface > channel)</div><div class="ttdef"><b>Definition:</b> generic_stub.h:37</div></div>
- <div class="ttc" id="classgrpc_1_1_byte_buffer_html"><div class="ttname"><a href="classgrpc_1_1_byte_buffer.html">grpc::ByteBuffer</a></div><div class="ttdoc">A sequence of bytes. </div><div class="ttdef"><b>Definition:</b> byte_buffer.h:53</div></div>
- <div class="ttc" id="classgrpc_1_1_generic_stub_html_ae1d079fa84bb70e895fe1a62ac8c0a43"><div class="ttname"><a href="classgrpc_1_1_generic_stub.html#ae1d079fa84bb70e895fe1a62ac8c0a43">grpc::GenericStub::PrepareCall</a></div><div class="ttdeci">std::unique_ptr< GenericClientAsyncReaderWriter > PrepareCall(ClientContext *context, const grpc::string &method, CompletionQueue *cq)</div><div class="ttdoc">Setup a call to a named method method using context, but don&#39;t start it. </div></div>
- </div><!-- fragment --></div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated on Tue May 15 2018 17:01:01 for GRPC C++ by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.13
- </small></address>
- </body>
- </html>
|