codegen_2rpc__service__method_8h_source.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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++: include/grpc++/impl/codegen/rpc_service_method.h Source File</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><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
  45. <li class="current"><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="files.html"><span>File&#160;List</span></a></li>
  67. <li><a href="globals.html"><span>Globals</span></a></li>
  68. </ul>
  69. </div>
  70. <!-- window showing the filter options -->
  71. <div id="MSearchSelectWindow"
  72. onmouseover="return searchBox.OnSearchSelectShow()"
  73. onmouseout="return searchBox.OnSearchSelectHide()"
  74. onkeydown="return searchBox.OnSearchSelectKey(event)">
  75. <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>
  76. <!-- iframe showing the search results (closed by default) -->
  77. <div id="MSearchResultsWindow">
  78. <iframe src="javascript:void(0)" frameborder="0"
  79. name="MSearchResults" id="MSearchResults">
  80. </iframe>
  81. </div>
  82. <div id="nav-path" class="navpath">
  83. <ul>
  84. <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_f1b2ab2a88927c1e950e43c1cf4b634b.html">grpc++</a></li><li class="navelem"><a class="el" href="dir_ac8b245a5921095c43c106649fd7bc4b.html">impl</a></li><li class="navelem"><a class="el" href="dir_a7c29f91546e182c0f2b46e2e51819eb.html">codegen</a></li> </ul>
  85. </div>
  86. </div><!-- top -->
  87. <div class="header">
  88. <div class="headertitle">
  89. <div class="title">rpc_service_method.h</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <a href="codegen_2rpc__service__method_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div>
  93. <div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div>
  94. <div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * Copyright 2016 gRPC authors.</span></div>
  95. <div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> *</span></div>
  96. <div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
  97. <div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * you may not use this file except in compliance with the License.</span></div>
  98. <div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * You may obtain a copy of the License at</span></div>
  99. <div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div>
  100. <div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
  101. <div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div>
  102. <div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
  103. <div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
  104. <div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
  105. <div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * See the License for the specific language governing permissions and</span></div>
  106. <div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * limitations under the License.</span></div>
  107. <div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> *</span></div>
  108. <div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> */</span></div>
  109. <div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div>
  110. <div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#ifndef GRPCXX_IMPL_CODEGEN_RPC_SERVICE_METHOD_H</span></div>
  111. <div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define GRPCXX_IMPL_CODEGEN_RPC_SERVICE_METHOD_H</span></div>
  112. <div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor"></span></div>
  113. <div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;climits&gt;</span></div>
  114. <div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div>
  115. <div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
  116. <div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div>
  117. <div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
  118. <div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div>
  119. <div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpc_09_09_2impl_2codegen_2byte__buffer_8h.html">grpc++/impl/codegen/byte_buffer.h</a>&gt;</span></div>
  120. <div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="impl_2codegen_2config_8h.html">grpc++/impl/codegen/config.h</a>&gt;</span></div>
  121. <div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="codegen_2rpc__method_8h.html">grpc++/impl/codegen/rpc_method.h</a>&gt;</span></div>
  122. <div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="grpc_09_09_2impl_2codegen_2status_8h.html">grpc++/impl/codegen/status.h</a>&gt;</span></div>
  123. <div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div>
  124. <div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">namespace </span>grpc {</div>
  125. <div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="keyword">class </span>ServerContext;</div>
  126. <div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div>
  127. <div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">namespace </span>internal {</div>
  128. <div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_method_handler.html"> 38</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1internal_1_1_method_handler.html">MethodHandler</a> {</div>
  129. <div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="keyword">public</span>:</div>
  130. <div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_method_handler.html#a6c9896af1ffd8b22d0bc197fbd946a33"> 40</a></span>&#160; <span class="keyword">virtual</span> <a class="code" href="classgrpc_1_1internal_1_1_method_handler.html#a6c9896af1ffd8b22d0bc197fbd946a33">~MethodHandler</a>() {}</div>
  131. <div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html"> 41</a></span>&#160; <span class="keyword">struct </span><a class="code" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html">HandlerParameter</a> {</div>
  132. <div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a6b6bb1c549f011b5e2c99558b730715b"> 42</a></span>&#160; <a class="code" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a6b6bb1c549f011b5e2c99558b730715b">HandlerParameter</a>(<a class="code" href="classgrpc_1_1internal_1_1_call.html">Call</a>* c, <a class="code" href="classgrpc_1_1_server_context.html">ServerContext</a>* context, <a class="code" href="structgrpc__byte__buffer.html">grpc_byte_buffer</a>* req)</div>
  133. <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; : <a class="code" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a3e0e2ef7ba90888f51dafe804ecffe6a">call</a>(c), <a class="code" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a3e6c2bce4e404620dc42c9f2c336a6c6">server_context</a>(context) {</div>
  134. <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <a class="code" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a0020f2f7c0af73e88624e8f87c0c23df">request</a>.set_buffer(req);</div>
  135. <div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; }</div>
  136. <div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a455c0525b872fe921620c353285f7c45"> 46</a></span>&#160; <a class="code" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a455c0525b872fe921620c353285f7c45">~HandlerParameter</a>() { <a class="code" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a0020f2f7c0af73e88624e8f87c0c23df">request</a>.<a class="code" href="classgrpc_1_1_byte_buffer.html#ae03627c8b3297965fa0cdd4f03a9af0f">Release</a>(); }</div>
  137. <div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a3e0e2ef7ba90888f51dafe804ecffe6a"> 47</a></span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_call.html">Call</a>* <a class="code" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a3e0e2ef7ba90888f51dafe804ecffe6a">call</a>;</div>
  138. <div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a3e6c2bce4e404620dc42c9f2c336a6c6"> 48</a></span>&#160; <a class="code" href="classgrpc_1_1_server_context.html">ServerContext</a>* <a class="code" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a3e6c2bce4e404620dc42c9f2c336a6c6">server_context</a>;</div>
  139. <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="comment">// Handler required to destroy these contents</span></div>
  140. <div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a0020f2f7c0af73e88624e8f87c0c23df"> 50</a></span>&#160; <a class="code" href="classgrpc_1_1_byte_buffer.html">ByteBuffer</a> <a class="code" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a0020f2f7c0af73e88624e8f87c0c23df">request</a>;</div>
  141. <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; };</div>
  142. <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1internal_1_1_method_handler.html#a61b91173bcf71a512a80947a5413c6c6">RunHandler</a>(<span class="keyword">const</span> <a class="code" href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html">HandlerParameter</a>&amp; param) = 0;</div>
  143. <div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;};</div>
  144. <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;</div>
  145. <div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_rpc_service_method.html"> 56</a></span>&#160;<span class="keyword">class </span><a class="code" href="classgrpc_1_1internal_1_1_rpc_service_method.html">RpcServiceMethod</a> : <span class="keyword">public</span> <a class="code" href="classgrpc_1_1internal_1_1_rpc_method.html">RpcMethod</a> {</div>
  146. <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keyword">public</span>:</div>
  147. <div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_rpc_service_method.html#acf2c8f9cd802005c855a85221ba56502"> 59</a></span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_rpc_service_method.html#acf2c8f9cd802005c855a85221ba56502">RpcServiceMethod</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classgrpc_1_1internal_1_1_rpc_method.html#ab5c363c57d5d44be8cc3e15196d9c5a3">name</a>, <a class="code" href="classgrpc_1_1internal_1_1_rpc_method.html#a40ce84e3569f6a327468ae59f04c7dd1">RpcMethod::RpcType</a> type,</div>
  148. <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_method_handler.html">MethodHandler</a>* <a class="code" href="classgrpc_1_1internal_1_1_rpc_service_method.html#ad75e6721a219287de693b7ea85c13f1c">handler</a>)</div>
  149. <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; : <a class="code" href="classgrpc_1_1internal_1_1_rpc_method.html">RpcMethod</a>(name, type), server_tag_(nullptr), handler_(handler) {}</div>
  150. <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div>
  151. <div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_rpc_service_method.html#a03f390063130e2ffcabb2ab341efda66"> 63</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1internal_1_1_rpc_service_method.html#a03f390063130e2ffcabb2ab341efda66">set_server_tag</a>(<span class="keywordtype">void</span>* tag) { server_tag_ = tag; }</div>
  152. <div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_rpc_service_method.html#a0e384ebdb157ef13f4c2e037ac82cc0c"> 64</a></span>&#160; <span class="keywordtype">void</span>* <a class="code" href="classgrpc_1_1internal_1_1_rpc_service_method.html#a0e384ebdb157ef13f4c2e037ac82cc0c">server_tag</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> server_tag_; }</div>
  153. <div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_rpc_service_method.html#ad75e6721a219287de693b7ea85c13f1c"> 66</a></span>&#160; <a class="code" href="classgrpc_1_1internal_1_1_method_handler.html">MethodHandler</a>* <a class="code" href="classgrpc_1_1internal_1_1_rpc_service_method.html#ad75e6721a219287de693b7ea85c13f1c">handler</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> handler_.get(); }</div>
  154. <div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_rpc_service_method.html#a62b046ce59de00bcc3755fe6a7cde51d"> 67</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1internal_1_1_rpc_service_method.html#a62b046ce59de00bcc3755fe6a7cde51d">ResetHandler</a>() { handler_.reset(); }</div>
  155. <div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classgrpc_1_1internal_1_1_rpc_service_method.html#a3a27a411f3f9ded5027bf671b16067d2"> 68</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classgrpc_1_1internal_1_1_rpc_service_method.html#a3a27a411f3f9ded5027bf671b16067d2">SetHandler</a>(<a class="code" href="classgrpc_1_1internal_1_1_method_handler.html">MethodHandler</a>* <a class="code" href="classgrpc_1_1internal_1_1_rpc_service_method.html#ad75e6721a219287de693b7ea85c13f1c">handler</a>) { handler_.reset(handler); }</div>
  156. <div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div>
  157. <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keyword">private</span>:</div>
  158. <div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keywordtype">void</span>* server_tag_;</div>
  159. <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; std::unique_ptr&lt;MethodHandler&gt; handler_;</div>
  160. <div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;};</div>
  161. <div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;} <span class="comment">// namespace internal</span></div>
  162. <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div>
  163. <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;} <span class="comment">// namespace grpc</span></div>
  164. <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;</div>
  165. <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;<span class="preprocessor">#endif // GRPCXX_IMPL_CODEGEN_RPC_SERVICE_METHOD_H</span></div>
  166. <div class="ttc" id="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter_html_a3e6c2bce4e404620dc42c9f2c336a6c6"><div class="ttname"><a href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a3e6c2bce4e404620dc42c9f2c336a6c6">grpc::internal::MethodHandler::HandlerParameter::server_context</a></div><div class="ttdeci">ServerContext * server_context</div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:48</div></div>
  167. <div class="ttc" id="grpc_09_09_2impl_2codegen_2status_8h_html"><div class="ttname"><a href="grpc_09_09_2impl_2codegen_2status_8h.html">status.h</a></div></div>
  168. <div class="ttc" id="classgrpc_1_1internal_1_1_method_handler_html_a6c9896af1ffd8b22d0bc197fbd946a33"><div class="ttname"><a href="classgrpc_1_1internal_1_1_method_handler.html#a6c9896af1ffd8b22d0bc197fbd946a33">grpc::internal::MethodHandler::~MethodHandler</a></div><div class="ttdeci">virtual ~MethodHandler()</div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:40</div></div>
  169. <div class="ttc" id="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter_html_a6b6bb1c549f011b5e2c99558b730715b"><div class="ttname"><a href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a6b6bb1c549f011b5e2c99558b730715b">grpc::internal::MethodHandler::HandlerParameter::HandlerParameter</a></div><div class="ttdeci">HandlerParameter(Call *c, ServerContext *context, grpc_byte_buffer *req)</div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:42</div></div>
  170. <div class="ttc" id="structgrpc__byte__buffer_html"><div class="ttname"><a href="structgrpc__byte__buffer.html">grpc_byte_buffer</a></div><div class="ttdef"><b>Definition:</b> grpc_types.h:41</div></div>
  171. <div class="ttc" id="classgrpc_1_1internal_1_1_rpc_method_html_a40ce84e3569f6a327468ae59f04c7dd1"><div class="ttname"><a href="classgrpc_1_1internal_1_1_rpc_method.html#a40ce84e3569f6a327468ae59f04c7dd1">grpc::internal::RpcMethod::RpcType</a></div><div class="ttdeci">RpcType</div><div class="ttdef"><b>Definition:</b> rpc_method.h:31</div></div>
  172. <div class="ttc" id="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter_html_a3e0e2ef7ba90888f51dafe804ecffe6a"><div class="ttname"><a href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a3e0e2ef7ba90888f51dafe804ecffe6a">grpc::internal::MethodHandler::HandlerParameter::call</a></div><div class="ttdeci">Call * call</div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:47</div></div>
  173. <div class="ttc" id="classgrpc_1_1internal_1_1_rpc_method_html_ab5c363c57d5d44be8cc3e15196d9c5a3"><div class="ttname"><a href="classgrpc_1_1internal_1_1_rpc_method.html#ab5c363c57d5d44be8cc3e15196d9c5a3">grpc::internal::RpcMethod::name</a></div><div class="ttdeci">const char * name() const </div><div class="ttdef"><b>Definition:</b> rpc_method.h:47</div></div>
  174. <div class="ttc" id="classgrpc_1_1internal_1_1_rpc_service_method_html_a3a27a411f3f9ded5027bf671b16067d2"><div class="ttname"><a href="classgrpc_1_1internal_1_1_rpc_service_method.html#a3a27a411f3f9ded5027bf671b16067d2">grpc::internal::RpcServiceMethod::SetHandler</a></div><div class="ttdeci">void SetHandler(MethodHandler *handler)</div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:68</div></div>
  175. <div class="ttc" id="classgrpc_1_1internal_1_1_rpc_method_html"><div class="ttname"><a href="classgrpc_1_1internal_1_1_rpc_method.html">grpc::internal::RpcMethod</a></div><div class="ttdoc">Descriptor of an RPC method. </div><div class="ttdef"><b>Definition:</b> rpc_method.h:29</div></div>
  176. <div class="ttc" id="classgrpc_1_1internal_1_1_rpc_service_method_html_a03f390063130e2ffcabb2ab341efda66"><div class="ttname"><a href="classgrpc_1_1internal_1_1_rpc_service_method.html#a03f390063130e2ffcabb2ab341efda66">grpc::internal::RpcServiceMethod::set_server_tag</a></div><div class="ttdeci">void set_server_tag(void *tag)</div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:63</div></div>
  177. <div class="ttc" id="classgrpc_1_1_byte_buffer_html_ae03627c8b3297965fa0cdd4f03a9af0f"><div class="ttname"><a href="classgrpc_1_1_byte_buffer.html#ae03627c8b3297965fa0cdd4f03a9af0f">grpc::ByteBuffer::Release</a></div><div class="ttdeci">void Release()</div><div class="ttdoc">Forget underlying byte buffer without destroying Use this only for un-owned byte buffers. </div><div class="ttdef"><b>Definition:</b> byte_buffer.h:88</div></div>
  178. <div class="ttc" id="classgrpc_1_1internal_1_1_method_handler_html_a61b91173bcf71a512a80947a5413c6c6"><div class="ttname"><a href="classgrpc_1_1internal_1_1_method_handler.html#a61b91173bcf71a512a80947a5413c6c6">grpc::internal::MethodHandler::RunHandler</a></div><div class="ttdeci">virtual void RunHandler(const HandlerParameter &amp;param)=0</div></div>
  179. <div class="ttc" id="codegen_2rpc__method_8h_html"><div class="ttname"><a href="codegen_2rpc__method_8h.html">rpc_method.h</a></div></div>
  180. <div class="ttc" id="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter_html_a0020f2f7c0af73e88624e8f87c0c23df"><div class="ttname"><a href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a0020f2f7c0af73e88624e8f87c0c23df">grpc::internal::MethodHandler::HandlerParameter::request</a></div><div class="ttdeci">ByteBuffer request</div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:50</div></div>
  181. <div class="ttc" id="classgrpc_1_1internal_1_1_rpc_service_method_html"><div class="ttname"><a href="classgrpc_1_1internal_1_1_rpc_service_method.html">grpc::internal::RpcServiceMethod</a></div><div class="ttdoc">Server side rpc method class. </div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:56</div></div>
  182. <div class="ttc" id="classgrpc_1_1internal_1_1_rpc_service_method_html_ad75e6721a219287de693b7ea85c13f1c"><div class="ttname"><a href="classgrpc_1_1internal_1_1_rpc_service_method.html#ad75e6721a219287de693b7ea85c13f1c">grpc::internal::RpcServiceMethod::handler</a></div><div class="ttdeci">MethodHandler * handler() const </div><div class="ttdoc">if MethodHandler is nullptr, then this is an async method </div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:66</div></div>
  183. <div class="ttc" id="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter_html"><div class="ttname"><a href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html">grpc::internal::MethodHandler::HandlerParameter</a></div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:41</div></div>
  184. <div class="ttc" id="classgrpc_1_1_server_context_html"><div class="ttname"><a href="classgrpc_1_1_server_context.html">grpc::ServerContext</a></div><div class="ttdoc">A ServerContext allows the person implementing a service handler to: </div><div class="ttdef"><b>Definition:</b> server_context.h:96</div></div>
  185. <div class="ttc" id="classgrpc_1_1internal_1_1_rpc_service_method_html_acf2c8f9cd802005c855a85221ba56502"><div class="ttname"><a href="classgrpc_1_1internal_1_1_rpc_service_method.html#acf2c8f9cd802005c855a85221ba56502">grpc::internal::RpcServiceMethod::RpcServiceMethod</a></div><div class="ttdeci">RpcServiceMethod(const char *name, RpcMethod::RpcType type, MethodHandler *handler)</div><div class="ttdoc">Takes ownership of the handler. </div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:59</div></div>
  186. <div class="ttc" id="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter_html_a455c0525b872fe921620c353285f7c45"><div class="ttname"><a href="structgrpc_1_1internal_1_1_method_handler_1_1_handler_parameter.html#a455c0525b872fe921620c353285f7c45">grpc::internal::MethodHandler::HandlerParameter::~HandlerParameter</a></div><div class="ttdeci">~HandlerParameter()</div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:46</div></div>
  187. <div class="ttc" id="classgrpc_1_1internal_1_1_method_handler_html"><div class="ttname"><a href="classgrpc_1_1internal_1_1_method_handler.html">grpc::internal::MethodHandler</a></div><div class="ttdoc">Base class for running an RPC handler. </div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:38</div></div>
  188. <div class="ttc" id="impl_2codegen_2config_8h_html"><div class="ttname"><a href="impl_2codegen_2config_8h.html">config.h</a></div></div>
  189. <div class="ttc" id="grpc_09_09_2impl_2codegen_2byte__buffer_8h_html"><div class="ttname"><a href="grpc_09_09_2impl_2codegen_2byte__buffer_8h.html">byte_buffer.h</a></div></div>
  190. <div class="ttc" id="classgrpc_1_1internal_1_1_rpc_service_method_html_a0e384ebdb157ef13f4c2e037ac82cc0c"><div class="ttname"><a href="classgrpc_1_1internal_1_1_rpc_service_method.html#a0e384ebdb157ef13f4c2e037ac82cc0c">grpc::internal::RpcServiceMethod::server_tag</a></div><div class="ttdeci">void * server_tag() const </div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:64</div></div>
  191. <div class="ttc" id="classgrpc_1_1_byte_buffer_html"><div class="ttname"><a href="classgrpc_1_1_byte_buffer.html">grpc::ByteBuffer</a></div><div class="ttdoc">A sequence of bytes. </div><div class="ttdef"><b>Definition:</b> byte_buffer.h:48</div></div>
  192. <div class="ttc" id="classgrpc_1_1internal_1_1_rpc_service_method_html_a62b046ce59de00bcc3755fe6a7cde51d"><div class="ttname"><a href="classgrpc_1_1internal_1_1_rpc_service_method.html#a62b046ce59de00bcc3755fe6a7cde51d">grpc::internal::RpcServiceMethod::ResetHandler</a></div><div class="ttdeci">void ResetHandler()</div><div class="ttdef"><b>Definition:</b> rpc_service_method.h:67</div></div>
  193. <div class="ttc" id="classgrpc_1_1internal_1_1_call_html"><div class="ttname"><a href="classgrpc_1_1internal_1_1_call.html">grpc::internal::Call</a></div><div class="ttdoc">Straightforward wrapping of the C call object. </div><div class="ttdef"><b>Definition:</b> call.h:683</div></div>
  194. </div><!-- fragment --></div><!-- contents -->
  195. <!-- start footer part -->
  196. <hr class="footer"/><address class="footer"><small>
  197. Generated on Tue Dec 12 2017 18:36:13 for GRPC C++ by &#160;<a href="http://www.doxygen.org/index.html">
  198. <img class="footer" src="doxygen.png" alt="doxygen"/>
  199. </a> 1.8.6
  200. </small></address>
  201. </body>
  202. </html>