classgrpc_1_1internal_1_1_client_async_streaming_interface.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>GRPC C++: grpc::internal::ClientAsyncStreamingInterface Class 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. </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.36.1</span>
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.17 -->
  34. <script type="text/javascript">
  35. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. /* @license-end */
  38. </script>
  39. <script type="text/javascript" src="menudata.js"></script>
  40. <script type="text/javascript" src="menu.js"></script>
  41. <script type="text/javascript">
  42. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  43. $(function() {
  44. initMenu('',true,false,'search.php','Search');
  45. $(document).ready(function() { init_search(); });
  46. });
  47. /* @license-end */</script>
  48. <div id="main-nav"></div>
  49. <!-- window showing the filter options -->
  50. <div id="MSearchSelectWindow"
  51. onmouseover="return searchBox.OnSearchSelectShow()"
  52. onmouseout="return searchBox.OnSearchSelectHide()"
  53. onkeydown="return searchBox.OnSearchSelectKey(event)">
  54. </div>
  55. <!-- iframe showing the search results (closed by default) -->
  56. <div id="MSearchResultsWindow">
  57. <iframe src="javascript:void(0)" frameborder="0"
  58. name="MSearchResults" id="MSearchResults">
  59. </iframe>
  60. </div>
  61. <div id="nav-path" class="navpath">
  62. <ul>
  63. <li class="navelem"><a class="el" href="namespacegrpc.html">grpc</a></li><li class="navelem"><a class="el" href="namespacegrpc_1_1internal.html">internal</a></li><li class="navelem"><a class="el" href="classgrpc_1_1internal_1_1_client_async_streaming_interface.html">ClientAsyncStreamingInterface</a></li> </ul>
  64. </div>
  65. </div><!-- top -->
  66. <div class="header">
  67. <div class="summary">
  68. <a href="#pub-methods">Public Member Functions</a> </div>
  69. <div class="headertitle">
  70. <div class="title">grpc::internal::ClientAsyncStreamingInterface Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
  71. </div><!--header-->
  72. <div class="contents">
  73. <p>Common interface for all client side asynchronous streaming.
  74. <a href="classgrpc_1_1internal_1_1_client_async_streaming_interface.html#details">More...</a></p>
  75. <p><code>#include &lt;<a class="el" href="grpcpp_2impl_2codegen_2async__stream_8h_source.html">async_stream.h</a>&gt;</code></p>
  76. <table class="memberdecls">
  77. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  78. Public Member Functions</h2></td></tr>
  79. <tr class="memitem:a5691ad84f8160a3eb10131f1f5de4708"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1internal_1_1_client_async_streaming_interface.html#a5691ad84f8160a3eb10131f1f5de4708">~ClientAsyncStreamingInterface</a> ()</td></tr>
  80. <tr class="separator:a5691ad84f8160a3eb10131f1f5de4708"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:a2bd65338b34000980fa048911c577637"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1internal_1_1_client_async_streaming_interface.html#a2bd65338b34000980fa048911c577637">StartCall</a> (void *tag)=0</td></tr>
  82. <tr class="memdesc:a2bd65338b34000980fa048911c577637"><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="classgrpc_1_1internal_1_1_client_async_streaming_interface.html#a2bd65338b34000980fa048911c577637">More...</a><br /></td></tr>
  83. <tr class="separator:a2bd65338b34000980fa048911c577637"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:ab5a35e289028ac2aaf062572ba6d567d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1internal_1_1_client_async_streaming_interface.html#ab5a35e289028ac2aaf062572ba6d567d">ReadInitialMetadata</a> (void *tag)=0</td></tr>
  85. <tr class="memdesc:ab5a35e289028ac2aaf062572ba6d567d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request notification of the reading of the initial metadata. <a href="classgrpc_1_1internal_1_1_client_async_streaming_interface.html#ab5a35e289028ac2aaf062572ba6d567d">More...</a><br /></td></tr>
  86. <tr class="separator:ab5a35e289028ac2aaf062572ba6d567d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:a0c4fd4be2228fa196ae446502828e23a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1internal_1_1_client_async_streaming_interface.html#a0c4fd4be2228fa196ae446502828e23a">Finish</a> (::<a class="el" href="classgrpc_1_1_status.html">grpc::Status</a> *status, void *tag)=0</td></tr>
  88. <tr class="memdesc:a0c4fd4be2228fa196ae446502828e23a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Indicate that the stream is to be finished and request notification for when the call has been ended. <a href="classgrpc_1_1internal_1_1_client_async_streaming_interface.html#a0c4fd4be2228fa196ae446502828e23a">More...</a><br /></td></tr>
  89. <tr class="separator:a0c4fd4be2228fa196ae446502828e23a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. </table>
  91. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  92. <div class="textblock"><p>Common interface for all client side asynchronous streaming. </p>
  93. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  94. <a id="a5691ad84f8160a3eb10131f1f5de4708"></a>
  95. <h2 class="memtitle"><span class="permalink"><a href="#a5691ad84f8160a3eb10131f1f5de4708">&#9670;&nbsp;</a></span>~ClientAsyncStreamingInterface()</h2>
  96. <div class="memitem">
  97. <div class="memproto">
  98. <table class="mlabels">
  99. <tr>
  100. <td class="mlabels-left">
  101. <table class="memname">
  102. <tr>
  103. <td class="memname">virtual grpc::internal::ClientAsyncStreamingInterface::~ClientAsyncStreamingInterface </td>
  104. <td>(</td>
  105. <td class="paramname"></td><td>)</td>
  106. <td></td>
  107. </tr>
  108. </table>
  109. </td>
  110. <td class="mlabels-right">
  111. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  112. </tr>
  113. </table>
  114. </div><div class="memdoc">
  115. </div>
  116. </div>
  117. <h2 class="groupheader">Member Function Documentation</h2>
  118. <a id="a0c4fd4be2228fa196ae446502828e23a"></a>
  119. <h2 class="memtitle"><span class="permalink"><a href="#a0c4fd4be2228fa196ae446502828e23a">&#9670;&nbsp;</a></span>Finish()</h2>
  120. <div class="memitem">
  121. <div class="memproto">
  122. <table class="mlabels">
  123. <tr>
  124. <td class="mlabels-left">
  125. <table class="memname">
  126. <tr>
  127. <td class="memname">virtual void grpc::internal::ClientAsyncStreamingInterface::Finish </td>
  128. <td>(</td>
  129. <td class="paramtype">::<a class="el" href="classgrpc_1_1_status.html">grpc::Status</a> *&#160;</td>
  130. <td class="paramname"><em>status</em>, </td>
  131. </tr>
  132. <tr>
  133. <td class="paramkey"></td>
  134. <td></td>
  135. <td class="paramtype">void *&#160;</td>
  136. <td class="paramname"><em>tag</em>&#160;</td>
  137. </tr>
  138. <tr>
  139. <td></td>
  140. <td>)</td>
  141. <td></td><td></td>
  142. </tr>
  143. </table>
  144. </td>
  145. <td class="mlabels-right">
  146. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  147. </tr>
  148. </table>
  149. </div><div class="memdoc">
  150. <p>Indicate that the stream is to be finished and request notification for when the call has been ended. </p>
  151. <p>Should not be used concurrently with other operations.</p>
  152. <p>It is appropriate to call this method exactly once when both:</p><ul>
  153. <li>the client side has no more message to send (this can be declared implicitly by calling this method, or explicitly through an earlier call to the <em>WritesDone</em> method of the class in use, e.g. <em><a class="el" href="classgrpc_1_1_client_async_writer_interface.html#a488d42d85f8e34902401e013572ff822" title="Signal the client is done with the writes (half-close the client stream).">ClientAsyncWriterInterface::WritesDone</a></em> or <em><a class="el" href="classgrpc_1_1_client_async_reader_writer_interface.html#a878193880df68ab969b697f1fcd7dbc3" title="Signal the client is done with the writes (half-close the client stream).">ClientAsyncReaderWriterInterface::WritesDone</a></em>).</li>
  154. <li>there are no more messages to be received from the server (this can be known implicitly by the calling code, or explicitly from an earlier call to <em><a class="el" href="classgrpc_1_1internal_1_1_async_reader_interface.html#adf87c602036d69158950b7299d0aae70" title="Read a message of type R into msg.">AsyncReaderInterface::Read</a></em> that yielded a failed result, e.g. cq-&gt;Next(&amp;read_tag, &amp;ok) filled in 'ok' with 'false').</li>
  155. </ul>
  156. <p>The tag will be returned when either:</p><ul>
  157. <li>all incoming messages have been read and the server has returned a status.</li>
  158. <li>the server has returned a non-OK status.</li>
  159. <li>the call failed for some reason and the library generated a status.</li>
  160. </ul>
  161. <p>Note that implementations of this method attempt to receive initial metadata from the server if initial metadata hasn't yet been received.</p>
  162. <dl class="params"><dt>Parameters</dt><dd>
  163. <table class="params">
  164. <tr><td class="paramdir">[in]</td><td class="paramname">tag</td><td>Tag identifying this request. </td></tr>
  165. <tr><td class="paramdir">[out]</td><td class="paramname">status</td><td>To be updated with the operation status. </td></tr>
  166. </table>
  167. </dd>
  168. </dl>
  169. <p>Implemented in <a class="el" href="classgrpc_1_1_client_async_reader_writer.html#a953d61a2b25473bb76c7038b940b87aa">grpc::ClientAsyncReaderWriter&lt; W, R &gt;</a>, <a class="el" href="classgrpc_1_1_client_async_writer.html#aa94f32feaf8200695b65f1628d0ddf50">grpc::ClientAsyncWriter&lt; W &gt;</a>, and <a class="el" href="classgrpc_1_1_client_async_reader.html#aacaaa56d3bcd0a7236c3d646e9b6d1d9">grpc::ClientAsyncReader&lt; R &gt;</a>.</p>
  170. </div>
  171. </div>
  172. <a id="ab5a35e289028ac2aaf062572ba6d567d"></a>
  173. <h2 class="memtitle"><span class="permalink"><a href="#ab5a35e289028ac2aaf062572ba6d567d">&#9670;&nbsp;</a></span>ReadInitialMetadata()</h2>
  174. <div class="memitem">
  175. <div class="memproto">
  176. <table class="mlabels">
  177. <tr>
  178. <td class="mlabels-left">
  179. <table class="memname">
  180. <tr>
  181. <td class="memname">virtual void grpc::internal::ClientAsyncStreamingInterface::ReadInitialMetadata </td>
  182. <td>(</td>
  183. <td class="paramtype">void *&#160;</td>
  184. <td class="paramname"><em>tag</em></td><td>)</td>
  185. <td></td>
  186. </tr>
  187. </table>
  188. </td>
  189. <td class="mlabels-right">
  190. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  191. </tr>
  192. </table>
  193. </div><div class="memdoc">
  194. <p>Request notification of the reading of the initial metadata. </p>
  195. <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><a class="el" href="classgrpc_1_1internal_1_1_async_reader_interface.html#adf87c602036d69158950b7299d0aae70" title="Read a message of type R into msg.">AsyncReaderInterface::Read</a></em> method.</p>
  196. <dl class="params"><dt>Parameters</dt><dd>
  197. <table class="params">
  198. <tr><td class="paramdir">[in]</td><td class="paramname">tag</td><td>Tag identifying this request. </td></tr>
  199. </table>
  200. </dd>
  201. </dl>
  202. <p>Implemented in <a class="el" href="classgrpc_1_1_client_async_reader_writer.html#a169a2eb8bedfd7281b37c79fdd307eb2">grpc::ClientAsyncReaderWriter&lt; W, R &gt;</a>, <a class="el" href="classgrpc_1_1_client_async_writer.html#a02f613eaaed4177f1682da3f5eebbdeb">grpc::ClientAsyncWriter&lt; W &gt;</a>, and <a class="el" href="classgrpc_1_1_client_async_reader.html#a66e76c15ee94cf0c2892def9041210d1">grpc::ClientAsyncReader&lt; R &gt;</a>.</p>
  203. </div>
  204. </div>
  205. <a id="a2bd65338b34000980fa048911c577637"></a>
  206. <h2 class="memtitle"><span class="permalink"><a href="#a2bd65338b34000980fa048911c577637">&#9670;&nbsp;</a></span>StartCall()</h2>
  207. <div class="memitem">
  208. <div class="memproto">
  209. <table class="mlabels">
  210. <tr>
  211. <td class="mlabels-left">
  212. <table class="memname">
  213. <tr>
  214. <td class="memname">virtual void grpc::internal::ClientAsyncStreamingInterface::StartCall </td>
  215. <td>(</td>
  216. <td class="paramtype">void *&#160;</td>
  217. <td class="paramname"><em>tag</em></td><td>)</td>
  218. <td></td>
  219. </tr>
  220. </table>
  221. </td>
  222. <td class="mlabels-right">
  223. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  224. </tr>
  225. </table>
  226. </div><div class="memdoc">
  227. <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>
  228. <p>Implemented in <a class="el" href="classgrpc_1_1_client_async_reader_writer.html#ae72f68c240ac2cbca98b524e723bd05b">grpc::ClientAsyncReaderWriter&lt; W, R &gt;</a>, <a class="el" href="classgrpc_1_1_client_async_writer.html#a42b8329c9a8bf18528fee8a3776db3d6">grpc::ClientAsyncWriter&lt; W &gt;</a>, and <a class="el" href="classgrpc_1_1_client_async_reader.html#a1afd3a30d2d6182ebf13941089b683d6">grpc::ClientAsyncReader&lt; R &gt;</a>.</p>
  229. </div>
  230. </div>
  231. <hr/>The documentation for this class was generated from the following file:<ul>
  232. <li>include/grpcpp/impl/codegen/<a class="el" href="grpcpp_2impl_2codegen_2async__stream_8h_source.html">async_stream.h</a></li>
  233. </ul>
  234. </div><!-- contents -->
  235. <!-- start footer part -->
  236. <hr class="footer"/><address class="footer"><small>
  237. Generated on Wed Mar 3 2021 19:17:26 for GRPC C++ by &#160;<a href="http://www.doxygen.org/index.html">
  238. <img class="footer" src="doxygen.png" alt="doxygen"/>
  239. </a> 1.8.17
  240. </small></address>
  241. </body>
  242. </html>