classgrpc_1_1_client_async_response_reader_interface.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.13"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>GRPC C++: grpc::ClientAsyncResponseReaderInterface&lt; R &gt; Class Template Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. <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>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">GRPC C++
  25. &#160;<span id="projectnumber">1.13.0-dev</span>
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.13 -->
  34. <script type="text/javascript">
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. </script>
  37. <script type="text/javascript" src="menudata.js"></script>
  38. <script type="text/javascript" src="menu.js"></script>
  39. <script type="text/javascript">
  40. $(function() {
  41. initMenu('',true,false,'search.php','Search');
  42. $(document).ready(function() { init_search(); });
  43. });
  44. </script>
  45. <div id="main-nav"></div>
  46. <!-- window showing the filter options -->
  47. <div id="MSearchSelectWindow"
  48. onmouseover="return searchBox.OnSearchSelectShow()"
  49. onmouseout="return searchBox.OnSearchSelectHide()"
  50. onkeydown="return searchBox.OnSearchSelectKey(event)">
  51. </div>
  52. <!-- iframe showing the search results (closed by default) -->
  53. <div id="MSearchResultsWindow">
  54. <iframe src="javascript:void(0)" frameborder="0"
  55. name="MSearchResults" id="MSearchResults">
  56. </iframe>
  57. </div>
  58. <div id="nav-path" class="navpath">
  59. <ul>
  60. <li class="navelem"><a class="el" href="namespacegrpc.html">grpc</a></li><li class="navelem"><a class="el" href="classgrpc_1_1_client_async_response_reader_interface.html">ClientAsyncResponseReaderInterface</a></li> </ul>
  61. </div>
  62. </div><!-- top -->
  63. <div class="header">
  64. <div class="summary">
  65. <a href="#pub-methods">Public Member Functions</a> </div>
  66. <div class="headertitle">
  67. <div class="title">grpc::ClientAsyncResponseReaderInterface&lt; R &gt; Class Template Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
  68. </div><!--header-->
  69. <div class="contents">
  70. <p>An interface relevant for async client side unary RPCs (which send one request message to a server and receive one response message).
  71. <a href="classgrpc_1_1_client_async_response_reader_interface.html#details">More...</a></p>
  72. <p><code>#include &lt;<a class="el" href="grpcpp_2impl_2codegen_2async__unary__call_8h_source.html">async_unary_call.h</a>&gt;</code></p>
  73. <table class="memberdecls">
  74. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  75. Public Member Functions</h2></td></tr>
  76. <tr class="memitem:aa97dc1ab6a7160a489d2e555102bf5a0"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_client_async_response_reader_interface.html#aa97dc1ab6a7160a489d2e555102bf5a0">~ClientAsyncResponseReaderInterface</a> ()</td></tr>
  77. <tr class="separator:aa97dc1ab6a7160a489d2e555102bf5a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:a1f0a98a8d6e2ee06236a7ecb971a2ac5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_client_async_response_reader_interface.html#a1f0a98a8d6e2ee06236a7ecb971a2ac5">StartCall</a> ()=0</td></tr>
  79. <tr class="memdesc:a1f0a98a8d6e2ee06236a7ecb971a2ac5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start the call that was set up by the constructor, but only if the constructor was invoked through the "Prepare" API which doesn't actually start the call. <a href="#a1f0a98a8d6e2ee06236a7ecb971a2ac5">More...</a><br /></td></tr>
  80. <tr class="separator:a1f0a98a8d6e2ee06236a7ecb971a2ac5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:a676e3a03a61c49a82b630d85bbfd366c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_client_async_response_reader_interface.html#a676e3a03a61c49a82b630d85bbfd366c">ReadInitialMetadata</a> (void *tag)=0</td></tr>
  82. <tr class="memdesc:a676e3a03a61c49a82b630d85bbfd366c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request notification of the reading of initial metadata. <a href="#a676e3a03a61c49a82b630d85bbfd366c">More...</a><br /></td></tr>
  83. <tr class="separator:a676e3a03a61c49a82b630d85bbfd366c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:a379b1d7477431729e01cd48cf6fc78bb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_client_async_response_reader_interface.html#a379b1d7477431729e01cd48cf6fc78bb">Finish</a> (R *msg, <a class="el" href="classgrpc_1_1_status.html">Status</a> *status, void *tag)=0</td></tr>
  85. <tr class="memdesc:a379b1d7477431729e01cd48cf6fc78bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request to receive the server's response <em>msg</em> and final <em>status</em> for the call, and to notify <em>tag</em> on this call's completion queue when finished. <a href="#a379b1d7477431729e01cd48cf6fc78bb">More...</a><br /></td></tr>
  86. <tr class="separator:a379b1d7477431729e01cd48cf6fc78bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. </table>
  88. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  89. <div class="textblock"><h3>template&lt;class R&gt;<br />
  90. class grpc::ClientAsyncResponseReaderInterface&lt; R &gt;</h3>
  91. <p>An interface relevant for async client side unary RPCs (which send one request message to a server and receive one response message). </p>
  92. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  93. <a id="aa97dc1ab6a7160a489d2e555102bf5a0"></a>
  94. <h2 class="memtitle"><span class="permalink"><a href="#aa97dc1ab6a7160a489d2e555102bf5a0">&#9670;&nbsp;</a></span>~ClientAsyncResponseReaderInterface()</h2>
  95. <div class="memitem">
  96. <div class="memproto">
  97. <div class="memtemplate">
  98. template&lt;class R &gt; </div>
  99. <table class="mlabels">
  100. <tr>
  101. <td class="mlabels-left">
  102. <table class="memname">
  103. <tr>
  104. <td class="memname">virtual <a class="el" href="classgrpc_1_1_client_async_response_reader_interface.html">grpc::ClientAsyncResponseReaderInterface</a>&lt; R &gt;::~<a class="el" href="classgrpc_1_1_client_async_response_reader_interface.html">ClientAsyncResponseReaderInterface</a> </td>
  105. <td>(</td>
  106. <td class="paramname"></td><td>)</td>
  107. <td></td>
  108. </tr>
  109. </table>
  110. </td>
  111. <td class="mlabels-right">
  112. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  113. </tr>
  114. </table>
  115. </div><div class="memdoc">
  116. </div>
  117. </div>
  118. <h2 class="groupheader">Member Function Documentation</h2>
  119. <a id="a379b1d7477431729e01cd48cf6fc78bb"></a>
  120. <h2 class="memtitle"><span class="permalink"><a href="#a379b1d7477431729e01cd48cf6fc78bb">&#9670;&nbsp;</a></span>Finish()</h2>
  121. <div class="memitem">
  122. <div class="memproto">
  123. <div class="memtemplate">
  124. template&lt;class R &gt; </div>
  125. <table class="mlabels">
  126. <tr>
  127. <td class="mlabels-left">
  128. <table class="memname">
  129. <tr>
  130. <td class="memname">virtual void <a class="el" href="classgrpc_1_1_client_async_response_reader_interface.html">grpc::ClientAsyncResponseReaderInterface</a>&lt; R &gt;::Finish </td>
  131. <td>(</td>
  132. <td class="paramtype">R *&#160;</td>
  133. <td class="paramname"><em>msg</em>, </td>
  134. </tr>
  135. <tr>
  136. <td class="paramkey"></td>
  137. <td></td>
  138. <td class="paramtype"><a class="el" href="classgrpc_1_1_status.html">Status</a> *&#160;</td>
  139. <td class="paramname"><em>status</em>, </td>
  140. </tr>
  141. <tr>
  142. <td class="paramkey"></td>
  143. <td></td>
  144. <td class="paramtype">void *&#160;</td>
  145. <td class="paramname"><em>tag</em>&#160;</td>
  146. </tr>
  147. <tr>
  148. <td></td>
  149. <td>)</td>
  150. <td></td><td></td>
  151. </tr>
  152. </table>
  153. </td>
  154. <td class="mlabels-right">
  155. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  156. </tr>
  157. </table>
  158. </div><div class="memdoc">
  159. <p>Request to receive the server's response <em>msg</em> and final <em>status</em> for the call, and to notify <em>tag</em> on this call's completion queue when finished. </p>
  160. <p>This function will return when either:</p><ul>
  161. <li>when the server's response message and status have been received.</li>
  162. <li>when the server has returned a non-OK status (no message expected in this case).</li>
  163. <li>when the call failed for some reason and the library generated a non-OK status.</li>
  164. </ul>
  165. <dl class="params"><dt>Parameters</dt><dd>
  166. <table class="params">
  167. <tr><td class="paramdir">[in]</td><td class="paramname">tag</td><td>Tag identifying this request. </td></tr>
  168. <tr><td class="paramdir">[out]</td><td class="paramname">status</td><td>To be updated with the operation status. </td></tr>
  169. <tr><td class="paramdir">[out]</td><td class="paramname">msg</td><td>To be filled in with the server's response message. </td></tr>
  170. </table>
  171. </dd>
  172. </dl>
  173. <p>Implemented in <a class="el" href="classgrpc_1_1_client_async_response_reader.html#a48b0b4dabcbaf4b4a12e4f094ac79b59">grpc::ClientAsyncResponseReader&lt; R &gt;</a>.</p>
  174. </div>
  175. </div>
  176. <a id="a676e3a03a61c49a82b630d85bbfd366c"></a>
  177. <h2 class="memtitle"><span class="permalink"><a href="#a676e3a03a61c49a82b630d85bbfd366c">&#9670;&nbsp;</a></span>ReadInitialMetadata()</h2>
  178. <div class="memitem">
  179. <div class="memproto">
  180. <div class="memtemplate">
  181. template&lt;class R &gt; </div>
  182. <table class="mlabels">
  183. <tr>
  184. <td class="mlabels-left">
  185. <table class="memname">
  186. <tr>
  187. <td class="memname">virtual void <a class="el" href="classgrpc_1_1_client_async_response_reader_interface.html">grpc::ClientAsyncResponseReaderInterface</a>&lt; R &gt;::ReadInitialMetadata </td>
  188. <td>(</td>
  189. <td class="paramtype">void *&#160;</td>
  190. <td class="paramname"><em>tag</em></td><td>)</td>
  191. <td></td>
  192. </tr>
  193. </table>
  194. </td>
  195. <td class="mlabels-right">
  196. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  197. </tr>
  198. </table>
  199. </div><div class="memdoc">
  200. <p>Request notification of the reading of initial metadata. </p>
  201. <p>Completion will be notified by <em>tag</em> on the associated completion queue. This call is optional, but if it is used, it cannot be used concurrently with or after the <em>Finish</em> method.</p>
  202. <dl class="params"><dt>Parameters</dt><dd>
  203. <table class="params">
  204. <tr><td class="paramdir">[in]</td><td class="paramname">tag</td><td>Tag identifying this request. </td></tr>
  205. </table>
  206. </dd>
  207. </dl>
  208. <p>Implemented in <a class="el" href="classgrpc_1_1_client_async_response_reader.html#ab45261c3dee4f7b34080593cc899b40d">grpc::ClientAsyncResponseReader&lt; R &gt;</a>.</p>
  209. </div>
  210. </div>
  211. <a id="a1f0a98a8d6e2ee06236a7ecb971a2ac5"></a>
  212. <h2 class="memtitle"><span class="permalink"><a href="#a1f0a98a8d6e2ee06236a7ecb971a2ac5">&#9670;&nbsp;</a></span>StartCall()</h2>
  213. <div class="memitem">
  214. <div class="memproto">
  215. <div class="memtemplate">
  216. template&lt;class R &gt; </div>
  217. <table class="mlabels">
  218. <tr>
  219. <td class="mlabels-left">
  220. <table class="memname">
  221. <tr>
  222. <td class="memname">virtual void <a class="el" href="classgrpc_1_1_client_async_response_reader_interface.html">grpc::ClientAsyncResponseReaderInterface</a>&lt; R &gt;::StartCall </td>
  223. <td>(</td>
  224. <td class="paramname"></td><td>)</td>
  225. <td></td>
  226. </tr>
  227. </table>
  228. </td>
  229. <td class="mlabels-right">
  230. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  231. </tr>
  232. </table>
  233. </div><div class="memdoc">
  234. <p>Start the call that was set up by the constructor, but only if the constructor was invoked through the "Prepare" API which doesn't actually start the call. </p>
  235. <p>Implemented in <a class="el" href="classgrpc_1_1_client_async_response_reader.html#aa6bb324b380b1389e38f89f7a0b85c64">grpc::ClientAsyncResponseReader&lt; R &gt;</a>.</p>
  236. </div>
  237. </div>
  238. <hr/>The documentation for this class was generated from the following file:<ul>
  239. <li>include/grpcpp/impl/codegen/<a class="el" href="grpcpp_2impl_2codegen_2async__unary__call_8h_source.html">async_unary_call.h</a></li>
  240. </ul>
  241. </div><!-- contents -->
  242. <!-- start footer part -->
  243. <hr class="footer"/><address class="footer"><small>
  244. Generated on Tue May 15 2018 17:01:01 for GRPC C++ by &#160;<a href="http://www.doxygen.org/index.html">
  245. <img class="footer" src="doxygen.png" alt="doxygen"/>
  246. </a> 1.8.13
  247. </small></address>
  248. </body>
  249. </html>