classgrpc_1_1internal_1_1_client_async_streaming_interface.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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::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. <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="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>
  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::internal::ClientAsyncStreamingInterface Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
  68. </div><!--header-->
  69. <div class="contents">
  70. <p>Common interface for all client side asynchronous streaming.
  71. <a href="classgrpc_1_1internal_1_1_client_async_streaming_interface.html#details">More...</a></p>
  72. <p><code>#include &lt;<a class="el" href="grpcpp_2impl_2codegen_2async__stream_8h_source.html">async_stream.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: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>
  77. <tr class="separator:a5691ad84f8160a3eb10131f1f5de4708"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <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>
  79. <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="#a2bd65338b34000980fa048911c577637">More...</a><br /></td></tr>
  80. <tr class="separator:a2bd65338b34000980fa048911c577637"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <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>
  82. <tr class="memdesc:ab5a35e289028ac2aaf062572ba6d567d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request notification of the reading of the initial metadata. <a href="#ab5a35e289028ac2aaf062572ba6d567d">More...</a><br /></td></tr>
  83. <tr class="separator:ab5a35e289028ac2aaf062572ba6d567d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:ad83ce06905fe819ae1e6b5b85e437642"><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#ad83ce06905fe819ae1e6b5b85e437642">Finish</a> (<a class="el" href="classgrpc_1_1_status.html">Status</a> *status, void *tag)=0</td></tr>
  85. <tr class="memdesc:ad83ce06905fe819ae1e6b5b85e437642"><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="#ad83ce06905fe819ae1e6b5b85e437642">More...</a><br /></td></tr>
  86. <tr class="separator:ad83ce06905fe819ae1e6b5b85e437642"><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"><p>Common interface for all client side asynchronous streaming. </p>
  90. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  91. <a id="a5691ad84f8160a3eb10131f1f5de4708"></a>
  92. <h2 class="memtitle"><span class="permalink"><a href="#a5691ad84f8160a3eb10131f1f5de4708">&#9670;&nbsp;</a></span>~ClientAsyncStreamingInterface()</h2>
  93. <div class="memitem">
  94. <div class="memproto">
  95. <table class="mlabels">
  96. <tr>
  97. <td class="mlabels-left">
  98. <table class="memname">
  99. <tr>
  100. <td class="memname">virtual grpc::internal::ClientAsyncStreamingInterface::~ClientAsyncStreamingInterface </td>
  101. <td>(</td>
  102. <td class="paramname"></td><td>)</td>
  103. <td></td>
  104. </tr>
  105. </table>
  106. </td>
  107. <td class="mlabels-right">
  108. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  109. </tr>
  110. </table>
  111. </div><div class="memdoc">
  112. </div>
  113. </div>
  114. <h2 class="groupheader">Member Function Documentation</h2>
  115. <a id="ad83ce06905fe819ae1e6b5b85e437642"></a>
  116. <h2 class="memtitle"><span class="permalink"><a href="#ad83ce06905fe819ae1e6b5b85e437642">&#9670;&nbsp;</a></span>Finish()</h2>
  117. <div class="memitem">
  118. <div class="memproto">
  119. <table class="mlabels">
  120. <tr>
  121. <td class="mlabels-left">
  122. <table class="memname">
  123. <tr>
  124. <td class="memname">virtual void grpc::internal::ClientAsyncStreamingInterface::Finish </td>
  125. <td>(</td>
  126. <td class="paramtype"><a class="el" href="classgrpc_1_1_status.html">Status</a> *&#160;</td>
  127. <td class="paramname"><em>status</em>, </td>
  128. </tr>
  129. <tr>
  130. <td class="paramkey"></td>
  131. <td></td>
  132. <td class="paramtype">void *&#160;</td>
  133. <td class="paramname"><em>tag</em>&#160;</td>
  134. </tr>
  135. <tr>
  136. <td></td>
  137. <td>)</td>
  138. <td></td><td></td>
  139. </tr>
  140. </table>
  141. </td>
  142. <td class="mlabels-right">
  143. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  144. </tr>
  145. </table>
  146. </div><div class="memdoc">
  147. <p>Indicate that the stream is to be finished and request notification for when the call has been ended. </p>
  148. <p>Should not be used concurrently with other operations.</p>
  149. <p>It is appropriate to call this method when both:</p><ul>
  150. <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>
  151. <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>
  152. </ul>
  153. <p>This function will return when either:</p><ul>
  154. <li>all incoming messages have been read and the server has returned a status.</li>
  155. <li>the server has returned a non-OK status.</li>
  156. <li>the call failed for some reason and the library generated a status.</li>
  157. </ul>
  158. <p>Note that implementations of this method attempt to receive initial metadata from the server if initial metadata hasn't yet been received.</p>
  159. <dl class="params"><dt>Parameters</dt><dd>
  160. <table class="params">
  161. <tr><td class="paramdir">[in]</td><td class="paramname">tag</td><td>Tag identifying this request. </td></tr>
  162. <tr><td class="paramdir">[out]</td><td class="paramname">status</td><td>To be updated with the operation status. </td></tr>
  163. </table>
  164. </dd>
  165. </dl>
  166. <p>Implemented in <a class="el" href="classgrpc_1_1_client_async_reader_writer.html#a292fae35382e0f3c919840689cfb2358">grpc::ClientAsyncReaderWriter&lt; W, R &gt;</a>, <a class="el" href="classgrpc_1_1_client_async_writer.html#a0bcd44cd9303fae2ab19bfed22766be3">grpc::ClientAsyncWriter&lt; W &gt;</a>, and <a class="el" href="classgrpc_1_1_client_async_reader.html#ad727cbb34fa9dd996d4f58234213953d">grpc::ClientAsyncReader&lt; R &gt;</a>.</p>
  167. </div>
  168. </div>
  169. <a id="ab5a35e289028ac2aaf062572ba6d567d"></a>
  170. <h2 class="memtitle"><span class="permalink"><a href="#ab5a35e289028ac2aaf062572ba6d567d">&#9670;&nbsp;</a></span>ReadInitialMetadata()</h2>
  171. <div class="memitem">
  172. <div class="memproto">
  173. <table class="mlabels">
  174. <tr>
  175. <td class="mlabels-left">
  176. <table class="memname">
  177. <tr>
  178. <td class="memname">virtual void grpc::internal::ClientAsyncStreamingInterface::ReadInitialMetadata </td>
  179. <td>(</td>
  180. <td class="paramtype">void *&#160;</td>
  181. <td class="paramname"><em>tag</em></td><td>)</td>
  182. <td></td>
  183. </tr>
  184. </table>
  185. </td>
  186. <td class="mlabels-right">
  187. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  188. </tr>
  189. </table>
  190. </div><div class="memdoc">
  191. <p>Request notification of the reading of the initial metadata. </p>
  192. <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>
  193. <dl class="params"><dt>Parameters</dt><dd>
  194. <table class="params">
  195. <tr><td class="paramdir">[in]</td><td class="paramname">tag</td><td>Tag identifying this request. </td></tr>
  196. </table>
  197. </dd>
  198. </dl>
  199. <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>
  200. </div>
  201. </div>
  202. <a id="a2bd65338b34000980fa048911c577637"></a>
  203. <h2 class="memtitle"><span class="permalink"><a href="#a2bd65338b34000980fa048911c577637">&#9670;&nbsp;</a></span>StartCall()</h2>
  204. <div class="memitem">
  205. <div class="memproto">
  206. <table class="mlabels">
  207. <tr>
  208. <td class="mlabels-left">
  209. <table class="memname">
  210. <tr>
  211. <td class="memname">virtual void grpc::internal::ClientAsyncStreamingInterface::StartCall </td>
  212. <td>(</td>
  213. <td class="paramtype">void *&#160;</td>
  214. <td class="paramname"><em>tag</em></td><td>)</td>
  215. <td></td>
  216. </tr>
  217. </table>
  218. </td>
  219. <td class="mlabels-right">
  220. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  221. </tr>
  222. </table>
  223. </div><div class="memdoc">
  224. <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>
  225. <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>
  226. </div>
  227. </div>
  228. <hr/>The documentation for this class was generated from the following file:<ul>
  229. <li>include/grpcpp/impl/codegen/<a class="el" href="grpcpp_2impl_2codegen_2async__stream_8h_source.html">async_stream.h</a></li>
  230. </ul>
  231. </div><!-- contents -->
  232. <!-- start footer part -->
  233. <hr class="footer"/><address class="footer"><small>
  234. Generated on Tue May 15 2018 17:01:01 for GRPC C++ by &#160;<a href="http://www.doxygen.org/index.html">
  235. <img class="footer" src="doxygen.png" alt="doxygen"/>
  236. </a> 1.8.13
  237. </small></address>
  238. </body>
  239. </html>