classgrpc_1_1internal_1_1_client_async_streaming_interface.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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.6"/>
  7. <title>GRPC C++: grpc::internal::ClientAsyncStreamingInterface Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/search.js"></script>
  13. <script type="text/javascript">
  14. $(document).ready(function() { searchBox.OnSelectItem(0); });
  15. </script>
  16. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  17. </head>
  18. <body>
  19. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  20. <div id="titlearea">
  21. <table cellspacing="0" cellpadding="0">
  22. <tbody>
  23. <tr style="height: 56px;">
  24. <td style="padding-left: 0.5em;">
  25. <div id="projectname">GRPC C++
  26. &#160;<span id="projectnumber">1.8.0</span>
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generated by Doxygen 1.8.6 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  41. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  42. <li><a href="modules.html"><span>Modules</span></a></li>
  43. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  44. <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
  45. <li><a href="files.html"><span>Files</span></a></li>
  46. <li>
  47. <div id="MSearchBox" class="MSearchBoxInactive">
  48. <span class="left">
  49. <img id="MSearchSelect" src="search/mag_sel.png"
  50. onmouseover="return searchBox.OnSearchSelectShow()"
  51. onmouseout="return searchBox.OnSearchSelectHide()"
  52. alt=""/>
  53. <input type="text" id="MSearchField" value="Search" accesskey="S"
  54. onfocus="searchBox.OnSearchFieldFocus(true)"
  55. onblur="searchBox.OnSearchFieldFocus(false)"
  56. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  57. </span><span class="right">
  58. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  59. </span>
  60. </div>
  61. </li>
  62. </ul>
  63. </div>
  64. <div id="navrow2" class="tabs2">
  65. <ul class="tablist">
  66. <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
  67. <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
  68. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  69. <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
  70. </ul>
  71. </div>
  72. <!-- window showing the filter options -->
  73. <div id="MSearchSelectWindow"
  74. onmouseover="return searchBox.OnSearchSelectShow()"
  75. onmouseout="return searchBox.OnSearchSelectHide()"
  76. onkeydown="return searchBox.OnSearchSelectKey(event)">
  77. <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(12)"><span class="SelectionMark">&#160;</span>Pages</a></div>
  78. <!-- iframe showing the search results (closed by default) -->
  79. <div id="MSearchResultsWindow">
  80. <iframe src="javascript:void(0)" frameborder="0"
  81. name="MSearchResults" id="MSearchResults">
  82. </iframe>
  83. </div>
  84. <div id="nav-path" class="navpath">
  85. <ul>
  86. <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>
  87. </div>
  88. </div><!-- top -->
  89. <div class="header">
  90. <div class="summary">
  91. <a href="#pub-methods">Public Member Functions</a> </div>
  92. <div class="headertitle">
  93. <div class="title">grpc::internal::ClientAsyncStreamingInterface Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
  94. </div><!--header-->
  95. <div class="contents">
  96. <p>Common interface for all client side asynchronous streaming.
  97. <a href="classgrpc_1_1internal_1_1_client_async_streaming_interface.html#details">More...</a></p>
  98. <p><code>#include &lt;<a class="el" href="impl_2codegen_2async__stream_8h_source.html">async_stream.h</a>&gt;</code></p>
  99. <table class="memberdecls">
  100. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  101. Public Member Functions</h2></td></tr>
  102. <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>
  103. <tr class="separator:a5691ad84f8160a3eb10131f1f5de4708"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <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>
  105. <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>
  106. <tr class="separator:a2bd65338b34000980fa048911c577637"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <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>
  108. <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>
  109. <tr class="separator:ab5a35e289028ac2aaf062572ba6d567d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <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>
  111. <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>
  112. <tr class="separator:ad83ce06905fe819ae1e6b5b85e437642"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. </table>
  114. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  115. <div class="textblock"><p>Common interface for all client side asynchronous streaming. </p>
  116. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  117. <a class="anchor" id="a5691ad84f8160a3eb10131f1f5de4708"></a>
  118. <div class="memitem">
  119. <div class="memproto">
  120. <table class="mlabels">
  121. <tr>
  122. <td class="mlabels-left">
  123. <table class="memname">
  124. <tr>
  125. <td class="memname">virtual grpc::internal::ClientAsyncStreamingInterface::~ClientAsyncStreamingInterface </td>
  126. <td>(</td>
  127. <td class="paramname"></td><td>)</td>
  128. <td></td>
  129. </tr>
  130. </table>
  131. </td>
  132. <td class="mlabels-right">
  133. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
  134. </tr>
  135. </table>
  136. </div><div class="memdoc">
  137. </div>
  138. </div>
  139. <h2 class="groupheader">Member Function Documentation</h2>
  140. <a class="anchor" id="ad83ce06905fe819ae1e6b5b85e437642"></a>
  141. <div class="memitem">
  142. <div class="memproto">
  143. <table class="mlabels">
  144. <tr>
  145. <td class="mlabels-left">
  146. <table class="memname">
  147. <tr>
  148. <td class="memname">virtual void grpc::internal::ClientAsyncStreamingInterface::Finish </td>
  149. <td>(</td>
  150. <td class="paramtype"><a class="el" href="classgrpc_1_1_status.html">Status</a> *&#160;</td>
  151. <td class="paramname"><em>status</em>, </td>
  152. </tr>
  153. <tr>
  154. <td class="paramkey"></td>
  155. <td></td>
  156. <td class="paramtype">void *&#160;</td>
  157. <td class="paramname"><em>tag</em>&#160;</td>
  158. </tr>
  159. <tr>
  160. <td></td>
  161. <td>)</td>
  162. <td></td><td></td>
  163. </tr>
  164. </table>
  165. </td>
  166. <td class="mlabels-right">
  167. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  168. </tr>
  169. </table>
  170. </div><div class="memdoc">
  171. <p>Indicate that the stream is to be finished and request notification for when the call has been ended. </p>
  172. <p>Should not be used concurrently with other operations.</p>
  173. <p>It is appropriate to call this method when both:</p>
  174. <ul>
  175. <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>
  176. <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>
  177. </ul>
  178. <p>This function will return when either:</p>
  179. <ul>
  180. <li>all incoming messages have been read and the server has returned a status.</li>
  181. <li>the server has returned a non-OK status.</li>
  182. <li>the call failed for some reason and the library generated a status.</li>
  183. </ul>
  184. <p>Note that implementations of this method attempt to receive initial metadata from the server if initial metadata hasn't yet been received.</p>
  185. <dl class="params"><dt>Parameters</dt><dd>
  186. <table class="params">
  187. <tr><td class="paramdir">[in]</td><td class="paramname">tag</td><td>Tag identifying this request. </td></tr>
  188. <tr><td class="paramdir">[out]</td><td class="paramname">status</td><td>To be updated with the operation status. </td></tr>
  189. </table>
  190. </dd>
  191. </dl>
  192. <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>
  193. </div>
  194. </div>
  195. <a class="anchor" id="ab5a35e289028ac2aaf062572ba6d567d"></a>
  196. <div class="memitem">
  197. <div class="memproto">
  198. <table class="mlabels">
  199. <tr>
  200. <td class="mlabels-left">
  201. <table class="memname">
  202. <tr>
  203. <td class="memname">virtual void grpc::internal::ClientAsyncStreamingInterface::ReadInitialMetadata </td>
  204. <td>(</td>
  205. <td class="paramtype">void *&#160;</td>
  206. <td class="paramname"><em>tag</em></td><td>)</td>
  207. <td></td>
  208. </tr>
  209. </table>
  210. </td>
  211. <td class="mlabels-right">
  212. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  213. </tr>
  214. </table>
  215. </div><div class="memdoc">
  216. <p>Request notification of the reading of the initial metadata. </p>
  217. <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>
  218. <dl class="params"><dt>Parameters</dt><dd>
  219. <table class="params">
  220. <tr><td class="paramdir">[in]</td><td class="paramname">tag</td><td>Tag identifying this request. </td></tr>
  221. </table>
  222. </dd>
  223. </dl>
  224. <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>
  225. </div>
  226. </div>
  227. <a class="anchor" id="a2bd65338b34000980fa048911c577637"></a>
  228. <div class="memitem">
  229. <div class="memproto">
  230. <table class="mlabels">
  231. <tr>
  232. <td class="mlabels-left">
  233. <table class="memname">
  234. <tr>
  235. <td class="memname">virtual void grpc::internal::ClientAsyncStreamingInterface::StartCall </td>
  236. <td>(</td>
  237. <td class="paramtype">void *&#160;</td>
  238. <td class="paramname"><em>tag</em></td><td>)</td>
  239. <td></td>
  240. </tr>
  241. </table>
  242. </td>
  243. <td class="mlabels-right">
  244. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  245. </tr>
  246. </table>
  247. </div><div class="memdoc">
  248. <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>
  249. <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>
  250. </div>
  251. </div>
  252. <hr/>The documentation for this class was generated from the following file:<ul>
  253. <li>include/grpc++/impl/codegen/<a class="el" href="impl_2codegen_2async__stream_8h_source.html">async_stream.h</a></li>
  254. </ul>
  255. </div><!-- contents -->
  256. <!-- start footer part -->
  257. <hr class="footer"/><address class="footer"><small>
  258. Generated on Tue Dec 12 2017 18:36:13 for GRPC C++ by &#160;<a href="http://www.doxygen.org/index.html">
  259. <img class="footer" src="doxygen.png" alt="doxygen"/>
  260. </a> 1.8.6
  261. </small></address>
  262. </body>
  263. </html>