| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332 | <!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.11"/><title>GRPC C++: grpc::ClientAsyncReader< R > Class Template Reference</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><script type="text/javascript">  $(document).ready(function() { init_search(); });</script><link href="doxygen.css" rel="stylesheet" type="text/css" /></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.0.0</span>   </div>  </td> </tr> </tbody></table></div><!-- end header part --><!-- Generated by Doxygen 1.8.11 --><script type="text/javascript">var searchBox = new SearchBox("searchBox", "search",false,'Search');</script>  <div id="navrow1" class="tabs">    <ul class="tablist">      <li><a href="index.html"><span>Main Page</span></a></li>      <li><a href="modules.html"><span>Modules</span></a></li>      <li><a href="namespaces.html"><span>Namespaces</span></a></li>      <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>      <li><a href="files.html"><span>Files</span></a></li>      <li>        <div id="MSearchBox" class="MSearchBoxInactive">        <span class="left">          <img id="MSearchSelect" src="search/mag_sel.png"               onmouseover="return searchBox.OnSearchSelectShow()"               onmouseout="return searchBox.OnSearchSelectHide()"               alt=""/>          <input type="text" id="MSearchField" value="Search" accesskey="S"               onfocus="searchBox.OnSearchFieldFocus(true)"                onblur="searchBox.OnSearchFieldFocus(false)"                onkeyup="searchBox.OnSearchFieldChange(event)"/>          </span><span class="right">            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>          </span>        </div>      </li>    </ul>  </div>  <div id="navrow2" class="tabs2">    <ul class="tablist">      <li><a href="annotated.html"><span>Data Structures</span></a></li>      <li><a href="classes.html"><span>Data Structure Index</span></a></li>      <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>      <li><a href="functions.html"><span>Data Fields</span></a></li>    </ul>  </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="namespacegrpc.html">grpc</a></li><li class="navelem"><a class="el" href="classgrpc_1_1_client_async_reader.html">ClientAsyncReader</a></li>  </ul></div></div><!-- top --><div class="header">  <div class="summary"><a href="#pub-methods">Public Member Functions</a>  </div>  <div class="headertitle"><div class="title">grpc::ClientAsyncReader< R > Class Template Reference</div>  </div></div><!--header--><div class="contents"><p><code>#include <<a class="el" href="impl_2codegen_2async__stream_8h_source.html">async_stream.h</a>></code></p><table class="memberdecls"><tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>Public Member Functions</h2></td></tr><tr class="memitem:aa14e3bc04d9852009f8b3094ce0d3ed4"><td class="memTemplParams" colspan="2">template<class W > </td></tr><tr class="memitem:aa14e3bc04d9852009f8b3094ce0d3ed4"><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_client_async_reader.html#aa14e3bc04d9852009f8b3094ce0d3ed4">ClientAsyncReader</a> (<a class="el" href="classgrpc_1_1_channel_interface.html">ChannelInterface</a> *channel, <a class="el" href="classgrpc_1_1_completion_queue.html">CompletionQueue</a> *cq, const <a class="el" href="classgrpc_1_1_rpc_method.html">RpcMethod</a> &method, <a class="el" href="classgrpc_1_1_client_context.html">ClientContext</a> *context, const W &request, void *tag)</td></tr><tr class="memdesc:aa14e3bc04d9852009f8b3094ce0d3ed4"><td class="mdescLeft"> </td><td class="mdescRight">Create a stream and write the first request out.  <a href="#aa14e3bc04d9852009f8b3094ce0d3ed4">More...</a><br /></td></tr><tr class="separator:aa14e3bc04d9852009f8b3094ce0d3ed4"><td class="memSeparator" colspan="2"> </td></tr><tr class="memitem:a0e5b71e2620dc95fe41305eef7ee7863"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_client_async_reader.html#a0e5b71e2620dc95fe41305eef7ee7863">ReadInitialMetadata</a> (void *tag) <a class="el" href="impl_2codegen_2config_8h.html#a9a884d706be26697c9c892365a3402a9">GRPC_OVERRIDE</a></td></tr><tr class="memdesc:a0e5b71e2620dc95fe41305eef7ee7863"><td class="mdescLeft"> </td><td class="mdescRight">Request notification of the reading of the initial metadata.  <a href="#a0e5b71e2620dc95fe41305eef7ee7863">More...</a><br /></td></tr><tr class="separator:a0e5b71e2620dc95fe41305eef7ee7863"><td class="memSeparator" colspan="2"> </td></tr><tr class="memitem:aaf9f76ba76be0a0144bbdf44d740731d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_client_async_reader.html#aaf9f76ba76be0a0144bbdf44d740731d">Read</a> (R *msg, void *tag) <a class="el" href="impl_2codegen_2config_8h.html#a9a884d706be26697c9c892365a3402a9">GRPC_OVERRIDE</a></td></tr><tr class="memdesc:aaf9f76ba76be0a0144bbdf44d740731d"><td class="mdescLeft"> </td><td class="mdescRight">Read a message of type <em>R</em> into <em>msg</em>.  <a href="#aaf9f76ba76be0a0144bbdf44d740731d">More...</a><br /></td></tr><tr class="separator:aaf9f76ba76be0a0144bbdf44d740731d"><td class="memSeparator" colspan="2"> </td></tr><tr class="memitem:a91bfabf65e2dc955b6983bc0ece5a73f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_client_async_reader.html#a91bfabf65e2dc955b6983bc0ece5a73f">Finish</a> (<a class="el" href="classgrpc_1_1_status.html">Status</a> *status, void *tag) <a class="el" href="impl_2codegen_2config_8h.html#a9a884d706be26697c9c892365a3402a9">GRPC_OVERRIDE</a></td></tr><tr class="memdesc:a91bfabf65e2dc955b6983bc0ece5a73f"><td class="mdescLeft"> </td><td class="mdescRight">Indicate that the stream is to be finished and request notification Should not be used concurrently with other operations.  <a href="#a91bfabf65e2dc955b6983bc0ece5a73f">More...</a><br /></td></tr><tr class="separator:a91bfabf65e2dc955b6983bc0ece5a73f"><td class="memSeparator" colspan="2"> </td></tr><tr class="inherit_header pub_methods_classgrpc_1_1_client_async_streaming_interface"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classgrpc_1_1_client_async_streaming_interface')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classgrpc_1_1_client_async_streaming_interface.html">grpc::ClientAsyncStreamingInterface</a></td></tr><tr class="memitem:a103c33e82dbf1715749886c4249f3f28 inherit pub_methods_classgrpc_1_1_client_async_streaming_interface"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_client_async_streaming_interface.html#a103c33e82dbf1715749886c4249f3f28">~ClientAsyncStreamingInterface</a> ()</td></tr><tr class="separator:a103c33e82dbf1715749886c4249f3f28 inherit pub_methods_classgrpc_1_1_client_async_streaming_interface"><td class="memSeparator" colspan="2"> </td></tr><tr class="inherit_header pub_methods_classgrpc_1_1_async_reader_interface"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classgrpc_1_1_async_reader_interface')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classgrpc_1_1_async_reader_interface.html">grpc::AsyncReaderInterface< R ></a></td></tr><tr class="memitem:ac7845d2df90fb380008aadb7f5f2f379 inherit pub_methods_classgrpc_1_1_async_reader_interface"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classgrpc_1_1_async_reader_interface.html#ac7845d2df90fb380008aadb7f5f2f379">~AsyncReaderInterface</a> ()</td></tr><tr class="separator:ac7845d2df90fb380008aadb7f5f2f379 inherit pub_methods_classgrpc_1_1_async_reader_interface"><td class="memSeparator" colspan="2"> </td></tr></table><h2 class="groupheader">Constructor & Destructor Documentation</h2><a class="anchor" id="aa14e3bc04d9852009f8b3094ce0d3ed4"></a><div class="memitem"><div class="memproto"><div class="memtemplate">template<class R > </div><div class="memtemplate">template<class W > </div><table class="mlabels">  <tr>  <td class="mlabels-left">      <table class="memname">        <tr>          <td class="memname"><a class="el" href="classgrpc_1_1_client_async_reader.html">grpc::ClientAsyncReader</a>< R >::<a class="el" href="classgrpc_1_1_client_async_reader.html">ClientAsyncReader</a> </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classgrpc_1_1_channel_interface.html">ChannelInterface</a> * </td>          <td class="paramname"><em>channel</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype"><a class="el" href="classgrpc_1_1_completion_queue.html">CompletionQueue</a> * </td>          <td class="paramname"><em>cq</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">const <a class="el" href="classgrpc_1_1_rpc_method.html">RpcMethod</a> & </td>          <td class="paramname"><em>method</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype"><a class="el" href="classgrpc_1_1_client_context.html">ClientContext</a> * </td>          <td class="paramname"><em>context</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">const W & </td>          <td class="paramname"><em>request</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">void * </td>          <td class="paramname"><em>tag</em> </td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td>        </tr>      </table>  </td>  <td class="mlabels-right"><span class="mlabels"><span class="mlabel">inline</span></span>  </td>  </tr></table></div><div class="memdoc"><p>Create a stream and write the first request out. </p></div></div><h2 class="groupheader">Member Function Documentation</h2><a class="anchor" id="a91bfabf65e2dc955b6983bc0ece5a73f"></a><div class="memitem"><div class="memproto"><div class="memtemplate">template<class R > </div><table class="mlabels">  <tr>  <td class="mlabels-left">      <table class="memname">        <tr>          <td class="memname">void <a class="el" href="classgrpc_1_1_client_async_reader.html">grpc::ClientAsyncReader</a>< R >::Finish </td>          <td>(</td>          <td class="paramtype"><a class="el" href="classgrpc_1_1_status.html">Status</a> * </td>          <td class="paramname"><em>status</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">void * </td>          <td class="paramname"><em>tag</em> </td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td>        </tr>      </table>  </td>  <td class="mlabels-right"><span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>  </tr></table></div><div class="memdoc"><p>Indicate that the stream is to be finished and request notification Should not be used concurrently with other operations. </p><dl class="params"><dt>Parameters</dt><dd>  <table class="params">    <tr><td class="paramdir">[out]</td><td class="paramname">status</td><td>To be updated with the operation status. </td></tr>    <tr><td class="paramdir">[in]</td><td class="paramname">tag</td><td>Tag identifying this request. </td></tr>  </table>  </dd></dl><p>Implements <a class="el" href="classgrpc_1_1_client_async_streaming_interface.html#afc1cfbd1514fea47088bc837bb578a24">grpc::ClientAsyncStreamingInterface</a>.</p></div></div><a class="anchor" id="aaf9f76ba76be0a0144bbdf44d740731d"></a><div class="memitem"><div class="memproto"><div class="memtemplate">template<class R > </div><table class="mlabels">  <tr>  <td class="mlabels-left">      <table class="memname">        <tr>          <td class="memname">void <a class="el" href="classgrpc_1_1_client_async_reader.html">grpc::ClientAsyncReader</a>< R >::Read </td>          <td>(</td>          <td class="paramtype">R * </td>          <td class="paramname"><em>msg</em>, </td>        </tr>        <tr>          <td class="paramkey"></td>          <td></td>          <td class="paramtype">void * </td>          <td class="paramname"><em>tag</em> </td>        </tr>        <tr>          <td></td>          <td>)</td>          <td></td><td></td>        </tr>      </table>  </td>  <td class="mlabels-right"><span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>  </tr></table></div><div class="memdoc"><p>Read a message of type <em>R</em> into <em>msg</em>. </p><p>Completion will be notified by <em>tag</em> on the associated completion queue. This is thread-safe with respect to <em>Write</em> or <em>WritesDone</em> methods. It should not be called concurrently with other streaming APIs on the same stream. It is not meaningful to call it concurrently with another <em>Read</em> on the same stream since reads on the same stream are delivered in order.</p><dl class="params"><dt>Parameters</dt><dd>  <table class="params">    <tr><td class="paramdir">[out]</td><td class="paramname">msg</td><td>Where to eventually store the read message. </td></tr>    <tr><td class="paramdir">[in]</td><td class="paramname">tag</td><td>The tag identifying the operation. </td></tr>  </table>  </dd></dl><p>Implements <a class="el" href="classgrpc_1_1_async_reader_interface.html#aa644cf63c12ae8c9d5fda16a361f8a11">grpc::AsyncReaderInterface< R ></a>.</p></div></div><a class="anchor" id="a0e5b71e2620dc95fe41305eef7ee7863"></a><div class="memitem"><div class="memproto"><div class="memtemplate">template<class R > </div><table class="mlabels">  <tr>  <td class="mlabels-left">      <table class="memname">        <tr>          <td class="memname">void <a class="el" href="classgrpc_1_1_client_async_reader.html">grpc::ClientAsyncReader</a>< R >::ReadInitialMetadata </td>          <td>(</td>          <td class="paramtype">void * </td>          <td class="paramname"><em>tag</em></td><td>)</td>          <td></td>        </tr>      </table>  </td>  <td class="mlabels-right"><span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>  </tr></table></div><div class="memdoc"><p>Request notification of the reading of the initial metadata. </p><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>Read</em> method.</p><dl class="params"><dt>Parameters</dt><dd>  <table class="params">    <tr><td class="paramdir">[in]</td><td class="paramname">tag</td><td>Tag identifying this request. </td></tr>  </table>  </dd></dl><p>Implements <a class="el" href="classgrpc_1_1_client_async_streaming_interface.html#ad83bfe2febf4a6296b7d2646799b8174">grpc::ClientAsyncStreamingInterface</a>.</p></div></div><hr/>The documentation for this class was generated from the following file:<ul><li>include/grpc++/impl/codegen/<a class="el" href="impl_2codegen_2async__stream_8h_source.html">async_stream.h</a></li></ul></div><!-- contents --><!-- start footer part --><hr class="footer"/><address class="footer"><small>Generated on Thu Aug 18 2016 21:34:58 for GRPC C++ by  <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11</small></address></body></html>
 |