Craig Tiller | 68f4e0f | 2015-08-05 08:18:21 -0700 | [diff] [blame^] | 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 Core: src/core/surface/server.c File 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 Core |
| 26 |  <span id="projectnumber">0.10.0.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 Page</span></a></li> |
| 41 | <li><a href="annotated.html"><span>Data Structures</span></a></li> |
| 42 | <li class="current"><a href="files.html"><span>Files</span></a></li> |
| 43 | <li> |
| 44 | <div id="MSearchBox" class="MSearchBoxInactive"> |
| 45 | <span class="left"> |
| 46 | <img id="MSearchSelect" src="search/mag_sel.png" |
| 47 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 48 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 49 | alt=""/> |
| 50 | <input type="text" id="MSearchField" value="Search" accesskey="S" |
| 51 | onfocus="searchBox.OnSearchFieldFocus(true)" |
| 52 | onblur="searchBox.OnSearchFieldFocus(false)" |
| 53 | onkeyup="searchBox.OnSearchFieldChange(event)"/> |
| 54 | </span><span class="right"> |
| 55 | <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> |
| 56 | </span> |
| 57 | </div> |
| 58 | </li> |
| 59 | </ul> |
| 60 | </div> |
| 61 | <div id="navrow2" class="tabs2"> |
| 62 | <ul class="tablist"> |
| 63 | <li><a href="files.html"><span>File List</span></a></li> |
| 64 | <li><a href="globals.html"><span>Globals</span></a></li> |
| 65 | </ul> |
| 66 | </div> |
| 67 | <!-- window showing the filter options --> |
| 68 | <div id="MSearchSelectWindow" |
| 69 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 70 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 71 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 72 | <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Pages</a></div> |
| 73 | |
| 74 | <!-- iframe showing the search results (closed by default) --> |
| 75 | <div id="MSearchResultsWindow"> |
| 76 | <iframe src="javascript:void(0)" frameborder="0" |
| 77 | name="MSearchResults" id="MSearchResults"> |
| 78 | </iframe> |
| 79 | </div> |
| 80 | |
| 81 | <div id="nav-path" class="navpath"> |
| 82 | <ul> |
| 83 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_aebb8dcc11953d78e620bbef0b9e2183.html">core</a></li><li class="navelem"><a class="el" href="dir_ea54cbef5e3ffa125df07262bbfc9627.html">surface</a></li> </ul> |
| 84 | </div> |
| 85 | </div><!-- top --> |
| 86 | <div class="header"> |
| 87 | <div class="summary"> |
| 88 | <a href="#nested-classes">Data Structures</a> | |
| 89 | <a href="#define-members">Macros</a> | |
| 90 | <a href="#typedef-members">Typedefs</a> | |
| 91 | <a href="#enum-members">Enumerations</a> | |
| 92 | <a href="#func-members">Functions</a> </div> |
| 93 | <div class="headertitle"> |
| 94 | <div class="title">server.c File Reference</div> </div> |
| 95 | </div><!--header--> |
| 96 | <div class="contents"> |
| 97 | <div class="textblock"><code>#include "<a class="el" href="server_8h_source.html">src/core/surface/server.h</a>"</code><br/> |
| 98 | <code>#include <stdlib.h></code><br/> |
| 99 | <code>#include <<a class="el" href="string_8h_source.html">string.h</a>></code><br/> |
| 100 | <code>#include <<a class="el" href="alloc_8h_source.html">grpc/support/alloc.h</a>></code><br/> |
| 101 | <code>#include <<a class="el" href="log_8h_source.html">grpc/support/log.h</a>></code><br/> |
| 102 | <code>#include <<a class="el" href="string__util_8h_source.html">grpc/support/string_util.h</a>></code><br/> |
| 103 | <code>#include <<a class="el" href="useful_8h_source.html">grpc/support/useful.h</a>></code><br/> |
| 104 | <code>#include "<a class="el" href="census__filter_8h_source.html">src/core/channel/census_filter.h</a>"</code><br/> |
| 105 | <code>#include "<a class="el" href="channel__args_8h_source.html">src/core/channel/channel_args.h</a>"</code><br/> |
| 106 | <code>#include "<a class="el" href="connected__channel_8h_source.html">src/core/channel/connected_channel.h</a>"</code><br/> |
| 107 | <code>#include "<a class="el" href="iomgr_8h_source.html">src/core/iomgr/iomgr.h</a>"</code><br/> |
| 108 | <code>#include "<a class="el" href="stack__lockfree_8h_source.html">src/core/support/stack_lockfree.h</a>"</code><br/> |
| 109 | <code>#include "<a class="el" href="call_8h_source.html">src/core/surface/call.h</a>"</code><br/> |
| 110 | <code>#include "<a class="el" href="channel_8h_source.html">src/core/surface/channel.h</a>"</code><br/> |
| 111 | <code>#include "<a class="el" href="completion__queue_8h_source.html">src/core/surface/completion_queue.h</a>"</code><br/> |
| 112 | <code>#include "<a class="el" href="init_8h_source.html">src/core/surface/init.h</a>"</code><br/> |
| 113 | <code>#include "<a class="el" href="metadata_8h_source.html">src/core/transport/metadata.h</a>"</code><br/> |
| 114 | </div><table class="memberdecls"> |
| 115 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> |
| 116 | Data Structures</h2></td></tr> |
| 117 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structlistener.html">listener</a></td></tr> |
| 118 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structcall__link.html">call_link</a></td></tr> |
| 120 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structrequested__call.html">requested_call</a></td></tr> |
| 122 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structchannel__registered__method.html">channel_registered_method</a></td></tr> |
| 124 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structchannel__data.html">channel_data</a></td></tr> |
| 126 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structshutdown__tag.html">shutdown_tag</a></td></tr> |
| 128 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structcall__data.html">call_data</a></td></tr> |
| 130 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structrequest__matcher.html">request_matcher</a></td></tr> |
| 132 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structregistered__method.html">registered_method</a></td></tr> |
| 134 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structchannel__broadcaster.html">channel_broadcaster</a></td></tr> |
| 136 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structgrpc__server.html">grpc_server</a></td></tr> |
| 138 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structshutdown__cleanup__args.html">shutdown_cleanup_args</a></td></tr> |
| 140 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 141 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structrequest__killer.html">request_killer</a></td></tr> |
| 142 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | </table><table class="memberdecls"> |
| 144 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> |
| 145 | Macros</h2></td></tr> |
| 146 | <tr class="memitem:ad74e7a97d516828e54c49eb3e4878da3"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#ad74e7a97d516828e54c49eb3e4878da3">SERVER_FROM_CALL_ELEM</a>(elem)   (((<a class="el" href="structchannel__data.html">channel_data</a> *)(elem)-><a class="el" href="structchannel__data.html">channel_data</a>)->server)</td></tr> |
| 147 | <tr class="separator:ad74e7a97d516828e54c49eb3e4878da3"><td class="memSeparator" colspan="2"> </td></tr> |
| 148 | </table><table class="memberdecls"> |
| 149 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> |
| 150 | Typedefs</h2></td></tr> |
| 151 | <tr class="memitem:a0a81ac863a31441ba5e8e2fc6be04f2c"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structlistener.html">listener</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a0a81ac863a31441ba5e8e2fc6be04f2c">listener</a></td></tr> |
| 152 | <tr class="separator:a0a81ac863a31441ba5e8e2fc6be04f2c"><td class="memSeparator" colspan="2"> </td></tr> |
| 153 | <tr class="memitem:a9d8dd5943711393112c0fe83c02c0ca8"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structcall__data.html">call_data</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a9d8dd5943711393112c0fe83c02c0ca8">call_data</a></td></tr> |
| 154 | <tr class="separator:a9d8dd5943711393112c0fe83c02c0ca8"><td class="memSeparator" colspan="2"> </td></tr> |
| 155 | <tr class="memitem:a663530098451ca6ac5dd8381e470b512"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structchannel__data.html">channel_data</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a663530098451ca6ac5dd8381e470b512">channel_data</a></td></tr> |
| 156 | <tr class="separator:a663530098451ca6ac5dd8381e470b512"><td class="memSeparator" colspan="2"> </td></tr> |
| 157 | <tr class="memitem:a6f8273ccf99ef212028d3488d579cf3b"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structregistered__method.html">registered_method</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a6f8273ccf99ef212028d3488d579cf3b">registered_method</a></td></tr> |
| 158 | <tr class="separator:a6f8273ccf99ef212028d3488d579cf3b"><td class="memSeparator" colspan="2"> </td></tr> |
| 159 | <tr class="memitem:a9b3e4fcd769f2a62cbbbde867715ef2c"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structrequested__call.html">requested_call</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a9b3e4fcd769f2a62cbbbde867715ef2c">requested_call</a></td></tr> |
| 160 | <tr class="separator:a9b3e4fcd769f2a62cbbbde867715ef2c"><td class="memSeparator" colspan="2"> </td></tr> |
| 161 | <tr class="memitem:a47b693eb517ae870b0243f6c7be3541f"><td class="memItemLeft" align="right" valign="top">typedef struct <br class="typebreak"/> |
| 162 | <a class="el" href="structchannel__registered__method.html">channel_registered_method</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a47b693eb517ae870b0243f6c7be3541f">channel_registered_method</a></td></tr> |
| 163 | <tr class="separator:a47b693eb517ae870b0243f6c7be3541f"><td class="memSeparator" colspan="2"> </td></tr> |
| 164 | <tr class="memitem:a292b677b1a61ecd5c4608340fa647346"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structshutdown__tag.html">shutdown_tag</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a292b677b1a61ecd5c4608340fa647346">shutdown_tag</a></td></tr> |
| 165 | <tr class="separator:a292b677b1a61ecd5c4608340fa647346"><td class="memSeparator" colspan="2"> </td></tr> |
| 166 | <tr class="memitem:a7c5e0489837d1efdf2f3fdb7087b59d4"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structrequest__matcher.html">request_matcher</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a7c5e0489837d1efdf2f3fdb7087b59d4">request_matcher</a></td></tr> |
| 167 | <tr class="separator:a7c5e0489837d1efdf2f3fdb7087b59d4"><td class="memSeparator" colspan="2"> </td></tr> |
| 168 | </table><table class="memberdecls"> |
| 169 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a> |
| 170 | Enumerations</h2></td></tr> |
| 171 | <tr class="memitem:aca2d7591ebc428dc14cf07f72e88c38a"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#aca2d7591ebc428dc14cf07f72e88c38a">requested_call_type</a> { <a class="el" href="server_8c.html#aca2d7591ebc428dc14cf07f72e88c38aa38d2782a64b3bf4a845e9795b295b685">BATCH_CALL</a>, |
| 172 | <a class="el" href="server_8c.html#aca2d7591ebc428dc14cf07f72e88c38aa969f2119db66590473c2fa7f00e21c5a">REGISTERED_CALL</a> |
| 173 | }</td></tr> |
| 174 | <tr class="separator:aca2d7591ebc428dc14cf07f72e88c38a"><td class="memSeparator" colspan="2"> </td></tr> |
| 175 | <tr class="memitem:a6ca2e6dbf0562417ab7c66e8907a56b1"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a6ca2e6dbf0562417ab7c66e8907a56b1">call_state</a> { <br/> |
| 176 |   <a class="el" href="client__channel_8c.html#a6ca2e6dbf0562417ab7c66e8907a56b1a5dc41298c08d706c248c0aad80fdf2a8">CALL_CREATED</a>, |
| 177 | <a class="el" href="client__channel_8c.html#a6ca2e6dbf0562417ab7c66e8907a56b1aa3615ca56e2de2713a3202ff99f15b1c">CALL_WAITING_FOR_SEND</a>, |
| 178 | <a class="el" href="client__channel_8c.html#a6ca2e6dbf0562417ab7c66e8907a56b1acc5228e1cac647003266db9241876cd2">CALL_WAITING_FOR_CONFIG</a>, |
| 179 | <a class="el" href="client__channel_8c.html#a6ca2e6dbf0562417ab7c66e8907a56b1a8f4f33fc632104e0ece9369cf5f236ad">CALL_WAITING_FOR_PICK</a>, |
| 180 | <br/> |
| 181 |   <a class="el" href="client__channel_8c.html#a6ca2e6dbf0562417ab7c66e8907a56b1a7d4a5aee632f6e68b3aa63e7618dc5a2">CALL_WAITING_FOR_CALL</a>, |
| 182 | <a class="el" href="client__channel_8c.html#a6ca2e6dbf0562417ab7c66e8907a56b1a38c567ba414b95843eea67ead22156b9">CALL_ACTIVE</a>, |
| 183 | <a class="el" href="client__channel_8c.html#a6ca2e6dbf0562417ab7c66e8907a56b1a64c64130e25c5cd2d884b8c16093a89d">CALL_CANCELLED</a>, |
| 184 | <a class="el" href="server_8c.html#a6ca2e6dbf0562417ab7c66e8907a56b1ae7d82dfe80ea0bd4feea8ee49ea2eab5">NOT_STARTED</a>, |
| 185 | <br/> |
| 186 |   <a class="el" href="server_8c.html#a6ca2e6dbf0562417ab7c66e8907a56b1a1869818fd53ff519eb8e429301bdff73">PENDING</a>, |
| 187 | <a class="el" href="server_8c.html#a6ca2e6dbf0562417ab7c66e8907a56b1a84b328a7ebdea4c8c4ed62e035ada28d">ACTIVATED</a>, |
| 188 | <a class="el" href="server_8c.html#a6ca2e6dbf0562417ab7c66e8907a56b1acfa05d5a2f18cf6a5976178d9949c512">ZOMBIED</a> |
| 189 | <br/> |
| 190 | }</td></tr> |
| 191 | <tr class="separator:a6ca2e6dbf0562417ab7c66e8907a56b1"><td class="memSeparator" colspan="2"> </td></tr> |
| 192 | </table><table class="memberdecls"> |
| 193 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 194 | Functions</h2></td></tr> |
| 195 | <tr class="memitem:ac174712f87fdae4b5757a1370e2a31cb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#ac174712f87fdae4b5757a1370e2a31cb">grpc_server_register_completion_queue</a> (<a class="el" href="structgrpc__server.html">grpc_server</a> *server, <a class="el" href="structgrpc__completion__queue.html">grpc_completion_queue</a> *cq)</td></tr> |
| 196 | <tr class="memdesc:ac174712f87fdae4b5757a1370e2a31cb"><td class="mdescLeft"> </td><td class="mdescRight">Register a completion queue with the server. <a href="#ac174712f87fdae4b5757a1370e2a31cb">More...</a><br/></td></tr> |
| 197 | <tr class="separator:ac174712f87fdae4b5757a1370e2a31cb"><td class="memSeparator" colspan="2"> </td></tr> |
| 198 | <tr class="memitem:a870e9abac807e8ba2578df7d9526f8c0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgrpc__server.html">grpc_server</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a870e9abac807e8ba2578df7d9526f8c0">grpc_server_create_from_filters</a> (const <a class="el" href="structgrpc__channel__filter.html">grpc_channel_filter</a> **filters, size_t filter_count, const <a class="el" href="structgrpc__channel__args.html">grpc_channel_args</a> *args)</td></tr> |
| 199 | <tr class="separator:a870e9abac807e8ba2578df7d9526f8c0"><td class="memSeparator" colspan="2"> </td></tr> |
| 200 | <tr class="memitem:a283062a2209f464f234b0e645c6fffb2"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a283062a2209f464f234b0e645c6fffb2">grpc_server_register_method</a> (<a class="el" href="structgrpc__server.html">grpc_server</a> *server, const char *method, const char *host)</td></tr> |
| 201 | <tr class="memdesc:a283062a2209f464f234b0e645c6fffb2"><td class="mdescLeft"> </td><td class="mdescRight">Registers a method in the server. <a href="#a283062a2209f464f234b0e645c6fffb2">More...</a><br/></td></tr> |
| 202 | <tr class="separator:a283062a2209f464f234b0e645c6fffb2"><td class="memSeparator" colspan="2"> </td></tr> |
| 203 | <tr class="memitem:ac5010d26419e14f5a9ab2fa86a4f7d1e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#ac5010d26419e14f5a9ab2fa86a4f7d1e">grpc_server_start</a> (<a class="el" href="structgrpc__server.html">grpc_server</a> *server)</td></tr> |
| 204 | <tr class="memdesc:ac5010d26419e14f5a9ab2fa86a4f7d1e"><td class="mdescLeft"> </td><td class="mdescRight">Start a server - tells all listeners to start listening. <a href="#ac5010d26419e14f5a9ab2fa86a4f7d1e">More...</a><br/></td></tr> |
| 205 | <tr class="separator:ac5010d26419e14f5a9ab2fa86a4f7d1e"><td class="memSeparator" colspan="2"> </td></tr> |
| 206 | <tr class="memitem:a26fd88680fa7949f4af879acdc249d8d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a26fd88680fa7949f4af879acdc249d8d">grpc_server_setup_transport</a> (<a class="el" href="structgrpc__server.html">grpc_server</a> *s, <a class="el" href="structgrpc__transport.html">grpc_transport</a> *transport, <a class="el" href="structgrpc__channel__filter.html">grpc_channel_filter</a> const **extra_filters, size_t num_extra_filters, <a class="el" href="structgrpc__mdctx.html">grpc_mdctx</a> *mdctx, const <a class="el" href="structgrpc__channel__args.html">grpc_channel_args</a> *args)</td></tr> |
| 207 | <tr class="separator:a26fd88680fa7949f4af879acdc249d8d"><td class="memSeparator" colspan="2"> </td></tr> |
| 208 | <tr class="memitem:a56fffa23c1c4bab9a469e2ac607b6db7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a56fffa23c1c4bab9a469e2ac607b6db7">grpc_server_shutdown_and_notify</a> (<a class="el" href="structgrpc__server.html">grpc_server</a> *server, <a class="el" href="structgrpc__completion__queue.html">grpc_completion_queue</a> *cq, void *tag)</td></tr> |
| 209 | <tr class="memdesc:a56fffa23c1c4bab9a469e2ac607b6db7"><td class="mdescLeft"> </td><td class="mdescRight">Begin shutting down a server. <a href="#a56fffa23c1c4bab9a469e2ac607b6db7">More...</a><br/></td></tr> |
| 210 | <tr class="separator:a56fffa23c1c4bab9a469e2ac607b6db7"><td class="memSeparator" colspan="2"> </td></tr> |
| 211 | <tr class="memitem:a57b25ccc5ec64affd1ade91554a81092"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a57b25ccc5ec64affd1ade91554a81092">grpc_server_listener_destroy_done</a> (void *s)</td></tr> |
| 212 | <tr class="separator:a57b25ccc5ec64affd1ade91554a81092"><td class="memSeparator" colspan="2"> </td></tr> |
| 213 | <tr class="memitem:ac5c1e4f3e270a7afbc39403fff0dc803"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#ac5c1e4f3e270a7afbc39403fff0dc803">grpc_server_cancel_all_calls</a> (<a class="el" href="structgrpc__server.html">grpc_server</a> *server)</td></tr> |
| 214 | <tr class="memdesc:ac5c1e4f3e270a7afbc39403fff0dc803"><td class="mdescLeft"> </td><td class="mdescRight">Cancel all in-progress calls. <a href="#ac5c1e4f3e270a7afbc39403fff0dc803">More...</a><br/></td></tr> |
| 215 | <tr class="separator:ac5c1e4f3e270a7afbc39403fff0dc803"><td class="memSeparator" colspan="2"> </td></tr> |
| 216 | <tr class="memitem:a34cba45da7c32a21ac82305d670e4620"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a34cba45da7c32a21ac82305d670e4620">grpc_server_destroy</a> (<a class="el" href="structgrpc__server.html">grpc_server</a> *server)</td></tr> |
| 217 | <tr class="memdesc:a34cba45da7c32a21ac82305d670e4620"><td class="mdescLeft"> </td><td class="mdescRight">Destroy a server. <a href="#a34cba45da7c32a21ac82305d670e4620">More...</a><br/></td></tr> |
| 218 | <tr class="separator:a34cba45da7c32a21ac82305d670e4620"><td class="memSeparator" colspan="2"> </td></tr> |
| 219 | <tr class="memitem:a777b461e0fd2a56acd35caf54f3d88e6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a777b461e0fd2a56acd35caf54f3d88e6">grpc_server_add_listener</a> (<a class="el" href="structgrpc__server.html">grpc_server</a> *server, void *<a class="el" href="structarg.html">arg</a>, void(*start)(<a class="el" href="structgrpc__server.html">grpc_server</a> *server, void *<a class="el" href="structarg.html">arg</a>, <a class="el" href="structgrpc__pollset.html">grpc_pollset</a> **pollsets, size_t pollset_count), void(*destroy)(<a class="el" href="structgrpc__server.html">grpc_server</a> *server, void *<a class="el" href="structarg.html">arg</a>))</td></tr> |
| 220 | <tr class="separator:a777b461e0fd2a56acd35caf54f3d88e6"><td class="memSeparator" colspan="2"> </td></tr> |
| 221 | <tr class="memitem:a419670c3509bc3c67c1344be3a1c4dbf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="grpc_8h.html#a0d5a8bdd6d53d209cacea4b6fa5d785b">grpc_call_error</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a419670c3509bc3c67c1344be3a1c4dbf">grpc_server_request_call</a> (<a class="el" href="structgrpc__server.html">grpc_server</a> *server, <a class="el" href="structgrpc__call.html">grpc_call</a> **call, <a class="el" href="structgrpc__call__details.html">grpc_call_details</a> *details, <a class="el" href="structgrpc__metadata__array.html">grpc_metadata_array</a> *initial_metadata, <a class="el" href="structgrpc__completion__queue.html">grpc_completion_queue</a> *cq_bound_to_call, <a class="el" href="structgrpc__completion__queue.html">grpc_completion_queue</a> *cq_for_notification, void *tag)</td></tr> |
| 222 | <tr class="memdesc:a419670c3509bc3c67c1344be3a1c4dbf"><td class="mdescLeft"> </td><td class="mdescRight">Request notification of a new call. <a href="#a419670c3509bc3c67c1344be3a1c4dbf">More...</a><br/></td></tr> |
| 223 | <tr class="separator:a419670c3509bc3c67c1344be3a1c4dbf"><td class="memSeparator" colspan="2"> </td></tr> |
| 224 | <tr class="memitem:a82bc2345fb113c461e255364d8d192b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="grpc_8h.html#a0d5a8bdd6d53d209cacea4b6fa5d785b">grpc_call_error</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a82bc2345fb113c461e255364d8d192b5">grpc_server_request_registered_call</a> (<a class="el" href="structgrpc__server.html">grpc_server</a> *server, void *rm, <a class="el" href="structgrpc__call.html">grpc_call</a> **call, <a class="el" href="structgpr__timespec.html">gpr_timespec</a> *deadline, <a class="el" href="structgrpc__metadata__array.html">grpc_metadata_array</a> *initial_metadata, <a class="el" href="structgrpc__byte__buffer.html">grpc_byte_buffer</a> **optional_payload, <a class="el" href="structgrpc__completion__queue.html">grpc_completion_queue</a> *cq_bound_to_call, <a class="el" href="structgrpc__completion__queue.html">grpc_completion_queue</a> *cq_for_notification, void *tag)</td></tr> |
| 225 | <tr class="memdesc:a82bc2345fb113c461e255364d8d192b5"><td class="mdescLeft"> </td><td class="mdescRight">Request notification of a new pre-registered call. <a href="#a82bc2345fb113c461e255364d8d192b5">More...</a><br/></td></tr> |
| 226 | <tr class="separator:a82bc2345fb113c461e255364d8d192b5"><td class="memSeparator" colspan="2"> </td></tr> |
| 227 | <tr class="memitem:a263c42634aa706458d691565943c6cae"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structgrpc__channel__args.html">grpc_channel_args</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a263c42634aa706458d691565943c6cae">grpc_server_get_channel_args</a> (<a class="el" href="structgrpc__server.html">grpc_server</a> *server)</td></tr> |
| 228 | <tr class="separator:a263c42634aa706458d691565943c6cae"><td class="memSeparator" colspan="2"> </td></tr> |
| 229 | <tr class="memitem:a28a4697b500cd4867a9f6731c8e58a94"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="server_8c.html#a28a4697b500cd4867a9f6731c8e58a94">grpc_server_has_open_connections</a> (<a class="el" href="structgrpc__server.html">grpc_server</a> *server)</td></tr> |
| 230 | <tr class="separator:a28a4697b500cd4867a9f6731c8e58a94"><td class="memSeparator" colspan="2"> </td></tr> |
| 231 | </table> |
| 232 | <h2 class="groupheader">Macro Definition Documentation</h2> |
| 233 | <a class="anchor" id="ad74e7a97d516828e54c49eb3e4878da3"></a> |
| 234 | <div class="memitem"> |
| 235 | <div class="memproto"> |
| 236 | <table class="memname"> |
| 237 | <tr> |
| 238 | <td class="memname">#define SERVER_FROM_CALL_ELEM</td> |
| 239 | <td>(</td> |
| 240 | <td class="paramtype"> </td> |
| 241 | <td class="paramname">elem</td><td>)</td> |
| 242 | <td>   (((<a class="el" href="structchannel__data.html">channel_data</a> *)(elem)-><a class="el" href="structchannel__data.html">channel_data</a>)->server)</td> |
| 243 | </tr> |
| 244 | </table> |
| 245 | </div><div class="memdoc"> |
| 246 | |
| 247 | </div> |
| 248 | </div> |
| 249 | <h2 class="groupheader">Typedef Documentation</h2> |
| 250 | <a class="anchor" id="a9d8dd5943711393112c0fe83c02c0ca8"></a> |
| 251 | <div class="memitem"> |
| 252 | <div class="memproto"> |
| 253 | <table class="memname"> |
| 254 | <tr> |
| 255 | <td class="memname">typedef struct <a class="el" href="structcall__data.html">call_data</a> <a class="el" href="structcall__data.html">call_data</a></td> |
| 256 | </tr> |
| 257 | </table> |
| 258 | </div><div class="memdoc"> |
| 259 | |
| 260 | </div> |
| 261 | </div> |
| 262 | <a class="anchor" id="a663530098451ca6ac5dd8381e470b512"></a> |
| 263 | <div class="memitem"> |
| 264 | <div class="memproto"> |
| 265 | <table class="memname"> |
| 266 | <tr> |
| 267 | <td class="memname">typedef struct <a class="el" href="structchannel__data.html">channel_data</a> <a class="el" href="structchannel__data.html">channel_data</a></td> |
| 268 | </tr> |
| 269 | </table> |
| 270 | </div><div class="memdoc"> |
| 271 | |
| 272 | </div> |
| 273 | </div> |
| 274 | <a class="anchor" id="a47b693eb517ae870b0243f6c7be3541f"></a> |
| 275 | <div class="memitem"> |
| 276 | <div class="memproto"> |
| 277 | <table class="memname"> |
| 278 | <tr> |
| 279 | <td class="memname">typedef struct <a class="el" href="structchannel__registered__method.html">channel_registered_method</a> <a class="el" href="structchannel__registered__method.html">channel_registered_method</a></td> |
| 280 | </tr> |
| 281 | </table> |
| 282 | </div><div class="memdoc"> |
| 283 | |
| 284 | </div> |
| 285 | </div> |
| 286 | <a class="anchor" id="a0a81ac863a31441ba5e8e2fc6be04f2c"></a> |
| 287 | <div class="memitem"> |
| 288 | <div class="memproto"> |
| 289 | <table class="memname"> |
| 290 | <tr> |
| 291 | <td class="memname">typedef struct <a class="el" href="structlistener.html">listener</a> <a class="el" href="structlistener.html">listener</a></td> |
| 292 | </tr> |
| 293 | </table> |
| 294 | </div><div class="memdoc"> |
| 295 | |
| 296 | </div> |
| 297 | </div> |
| 298 | <a class="anchor" id="a6f8273ccf99ef212028d3488d579cf3b"></a> |
| 299 | <div class="memitem"> |
| 300 | <div class="memproto"> |
| 301 | <table class="memname"> |
| 302 | <tr> |
| 303 | <td class="memname">typedef struct <a class="el" href="structregistered__method.html">registered_method</a> <a class="el" href="structregistered__method.html">registered_method</a></td> |
| 304 | </tr> |
| 305 | </table> |
| 306 | </div><div class="memdoc"> |
| 307 | |
| 308 | </div> |
| 309 | </div> |
| 310 | <a class="anchor" id="a7c5e0489837d1efdf2f3fdb7087b59d4"></a> |
| 311 | <div class="memitem"> |
| 312 | <div class="memproto"> |
| 313 | <table class="memname"> |
| 314 | <tr> |
| 315 | <td class="memname">typedef struct <a class="el" href="structrequest__matcher.html">request_matcher</a> <a class="el" href="structrequest__matcher.html">request_matcher</a></td> |
| 316 | </tr> |
| 317 | </table> |
| 318 | </div><div class="memdoc"> |
| 319 | |
| 320 | </div> |
| 321 | </div> |
| 322 | <a class="anchor" id="a9b3e4fcd769f2a62cbbbde867715ef2c"></a> |
| 323 | <div class="memitem"> |
| 324 | <div class="memproto"> |
| 325 | <table class="memname"> |
| 326 | <tr> |
| 327 | <td class="memname">typedef struct <a class="el" href="structrequested__call.html">requested_call</a> <a class="el" href="structrequested__call.html">requested_call</a></td> |
| 328 | </tr> |
| 329 | </table> |
| 330 | </div><div class="memdoc"> |
| 331 | |
| 332 | </div> |
| 333 | </div> |
| 334 | <a class="anchor" id="a292b677b1a61ecd5c4608340fa647346"></a> |
| 335 | <div class="memitem"> |
| 336 | <div class="memproto"> |
| 337 | <table class="memname"> |
| 338 | <tr> |
| 339 | <td class="memname">typedef struct <a class="el" href="structshutdown__tag.html">shutdown_tag</a> <a class="el" href="structshutdown__tag.html">shutdown_tag</a></td> |
| 340 | </tr> |
| 341 | </table> |
| 342 | </div><div class="memdoc"> |
| 343 | |
| 344 | </div> |
| 345 | </div> |
| 346 | <h2 class="groupheader">Enumeration Type Documentation</h2> |
| 347 | <a class="anchor" id="a6ca2e6dbf0562417ab7c66e8907a56b1"></a> |
| 348 | <div class="memitem"> |
| 349 | <div class="memproto"> |
| 350 | <table class="memname"> |
| 351 | <tr> |
| 352 | <td class="memname">enum <a class="el" href="client__channel_8c.html#a6ca2e6dbf0562417ab7c66e8907a56b1">call_state</a></td> |
| 353 | </tr> |
| 354 | </table> |
| 355 | </div><div class="memdoc"> |
| 356 | <table class="fieldtable"> |
| 357 | <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a6ca2e6dbf0562417ab7c66e8907a56b1a5dc41298c08d706c248c0aad80fdf2a8"></a>CALL_CREATED</em> </td><td class="fielddoc"> |
| 358 | </td></tr> |
| 359 | <tr><td class="fieldname"><em><a class="anchor" id="a6ca2e6dbf0562417ab7c66e8907a56b1aa3615ca56e2de2713a3202ff99f15b1c"></a>CALL_WAITING_FOR_SEND</em> </td><td class="fielddoc"> |
| 360 | </td></tr> |
| 361 | <tr><td class="fieldname"><em><a class="anchor" id="a6ca2e6dbf0562417ab7c66e8907a56b1acc5228e1cac647003266db9241876cd2"></a>CALL_WAITING_FOR_CONFIG</em> </td><td class="fielddoc"> |
| 362 | </td></tr> |
| 363 | <tr><td class="fieldname"><em><a class="anchor" id="a6ca2e6dbf0562417ab7c66e8907a56b1a8f4f33fc632104e0ece9369cf5f236ad"></a>CALL_WAITING_FOR_PICK</em> </td><td class="fielddoc"> |
| 364 | </td></tr> |
| 365 | <tr><td class="fieldname"><em><a class="anchor" id="a6ca2e6dbf0562417ab7c66e8907a56b1a7d4a5aee632f6e68b3aa63e7618dc5a2"></a>CALL_WAITING_FOR_CALL</em> </td><td class="fielddoc"> |
| 366 | </td></tr> |
| 367 | <tr><td class="fieldname"><em><a class="anchor" id="a6ca2e6dbf0562417ab7c66e8907a56b1a38c567ba414b95843eea67ead22156b9"></a>CALL_ACTIVE</em> </td><td class="fielddoc"> |
| 368 | </td></tr> |
| 369 | <tr><td class="fieldname"><em><a class="anchor" id="a6ca2e6dbf0562417ab7c66e8907a56b1a64c64130e25c5cd2d884b8c16093a89d"></a>CALL_CANCELLED</em> </td><td class="fielddoc"> |
| 370 | </td></tr> |
| 371 | <tr><td class="fieldname"><em><a class="anchor" id="a6ca2e6dbf0562417ab7c66e8907a56b1ae7d82dfe80ea0bd4feea8ee49ea2eab5"></a>NOT_STARTED</em> </td><td class="fielddoc"> |
| 372 | </td></tr> |
| 373 | <tr><td class="fieldname"><em><a class="anchor" id="a6ca2e6dbf0562417ab7c66e8907a56b1a1869818fd53ff519eb8e429301bdff73"></a>PENDING</em> </td><td class="fielddoc"> |
| 374 | </td></tr> |
| 375 | <tr><td class="fieldname"><em><a class="anchor" id="a6ca2e6dbf0562417ab7c66e8907a56b1a84b328a7ebdea4c8c4ed62e035ada28d"></a>ACTIVATED</em> </td><td class="fielddoc"> |
| 376 | </td></tr> |
| 377 | <tr><td class="fieldname"><em><a class="anchor" id="a6ca2e6dbf0562417ab7c66e8907a56b1acfa05d5a2f18cf6a5976178d9949c512"></a>ZOMBIED</em> </td><td class="fielddoc"> |
| 378 | </td></tr> |
| 379 | </table> |
| 380 | |
| 381 | </div> |
| 382 | </div> |
| 383 | <a class="anchor" id="aca2d7591ebc428dc14cf07f72e88c38a"></a> |
| 384 | <div class="memitem"> |
| 385 | <div class="memproto"> |
| 386 | <table class="memname"> |
| 387 | <tr> |
| 388 | <td class="memname">enum <a class="el" href="server_8c.html#aca2d7591ebc428dc14cf07f72e88c38a">requested_call_type</a></td> |
| 389 | </tr> |
| 390 | </table> |
| 391 | </div><div class="memdoc"> |
| 392 | <table class="fieldtable"> |
| 393 | <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="aca2d7591ebc428dc14cf07f72e88c38aa38d2782a64b3bf4a845e9795b295b685"></a>BATCH_CALL</em> </td><td class="fielddoc"> |
| 394 | </td></tr> |
| 395 | <tr><td class="fieldname"><em><a class="anchor" id="aca2d7591ebc428dc14cf07f72e88c38aa969f2119db66590473c2fa7f00e21c5a"></a>REGISTERED_CALL</em> </td><td class="fielddoc"> |
| 396 | </td></tr> |
| 397 | </table> |
| 398 | |
| 399 | </div> |
| 400 | </div> |
| 401 | <h2 class="groupheader">Function Documentation</h2> |
| 402 | <a class="anchor" id="a777b461e0fd2a56acd35caf54f3d88e6"></a> |
| 403 | <div class="memitem"> |
| 404 | <div class="memproto"> |
| 405 | <table class="memname"> |
| 406 | <tr> |
| 407 | <td class="memname">void grpc_server_add_listener </td> |
| 408 | <td>(</td> |
| 409 | <td class="paramtype"><a class="el" href="structgrpc__server.html">grpc_server</a> * </td> |
| 410 | <td class="paramname"><em>server</em>, </td> |
| 411 | </tr> |
| 412 | <tr> |
| 413 | <td class="paramkey"></td> |
| 414 | <td></td> |
| 415 | <td class="paramtype">void * </td> |
| 416 | <td class="paramname"><em>arg</em>, </td> |
| 417 | </tr> |
| 418 | <tr> |
| 419 | <td class="paramkey"></td> |
| 420 | <td></td> |
| 421 | <td class="paramtype">void(*)(<a class="el" href="structgrpc__server.html">grpc_server</a> *server, void *<a class="el" href="structarg.html">arg</a>, <a class="el" href="structgrpc__pollset.html">grpc_pollset</a> **pollsets, size_t pollset_count) </td> |
| 422 | <td class="paramname"><em>start</em>, </td> |
| 423 | </tr> |
| 424 | <tr> |
| 425 | <td class="paramkey"></td> |
| 426 | <td></td> |
| 427 | <td class="paramtype">void(*)(<a class="el" href="structgrpc__server.html">grpc_server</a> *server, void *<a class="el" href="structarg.html">arg</a>) </td> |
| 428 | <td class="paramname"><em>destroy</em> </td> |
| 429 | </tr> |
| 430 | <tr> |
| 431 | <td></td> |
| 432 | <td>)</td> |
| 433 | <td></td><td></td> |
| 434 | </tr> |
| 435 | </table> |
| 436 | </div><div class="memdoc"> |
| 437 | |
| 438 | </div> |
| 439 | </div> |
| 440 | <a class="anchor" id="ac5c1e4f3e270a7afbc39403fff0dc803"></a> |
| 441 | <div class="memitem"> |
| 442 | <div class="memproto"> |
| 443 | <table class="memname"> |
| 444 | <tr> |
| 445 | <td class="memname">void grpc_server_cancel_all_calls </td> |
| 446 | <td>(</td> |
| 447 | <td class="paramtype"><a class="el" href="structgrpc__server.html">grpc_server</a> * </td> |
| 448 | <td class="paramname"><em>server</em></td><td>)</td> |
| 449 | <td></td> |
| 450 | </tr> |
| 451 | </table> |
| 452 | </div><div class="memdoc"> |
| 453 | |
| 454 | <p>Cancel all in-progress calls. </p> |
| 455 | <p>Only usable after shutdown. </p> |
| 456 | |
| 457 | </div> |
| 458 | </div> |
| 459 | <a class="anchor" id="a870e9abac807e8ba2578df7d9526f8c0"></a> |
| 460 | <div class="memitem"> |
| 461 | <div class="memproto"> |
| 462 | <table class="memname"> |
| 463 | <tr> |
| 464 | <td class="memname"><a class="el" href="structgrpc__server.html">grpc_server</a>* grpc_server_create_from_filters </td> |
| 465 | <td>(</td> |
| 466 | <td class="paramtype">const <a class="el" href="structgrpc__channel__filter.html">grpc_channel_filter</a> ** </td> |
| 467 | <td class="paramname"><em>filters</em>, </td> |
| 468 | </tr> |
| 469 | <tr> |
| 470 | <td class="paramkey"></td> |
| 471 | <td></td> |
| 472 | <td class="paramtype">size_t </td> |
| 473 | <td class="paramname"><em>filter_count</em>, </td> |
| 474 | </tr> |
| 475 | <tr> |
| 476 | <td class="paramkey"></td> |
| 477 | <td></td> |
| 478 | <td class="paramtype">const <a class="el" href="structgrpc__channel__args.html">grpc_channel_args</a> * </td> |
| 479 | <td class="paramname"><em>args</em> </td> |
| 480 | </tr> |
| 481 | <tr> |
| 482 | <td></td> |
| 483 | <td>)</td> |
| 484 | <td></td><td></td> |
| 485 | </tr> |
| 486 | </table> |
| 487 | </div><div class="memdoc"> |
| 488 | |
| 489 | </div> |
| 490 | </div> |
| 491 | <a class="anchor" id="a34cba45da7c32a21ac82305d670e4620"></a> |
| 492 | <div class="memitem"> |
| 493 | <div class="memproto"> |
| 494 | <table class="memname"> |
| 495 | <tr> |
| 496 | <td class="memname">void grpc_server_destroy </td> |
| 497 | <td>(</td> |
| 498 | <td class="paramtype"><a class="el" href="structgrpc__server.html">grpc_server</a> * </td> |
| 499 | <td class="paramname"><em>server</em></td><td>)</td> |
| 500 | <td></td> |
| 501 | </tr> |
| 502 | </table> |
| 503 | </div><div class="memdoc"> |
| 504 | |
| 505 | <p>Destroy a server. </p> |
| 506 | <p>Shutdown must have completed beforehand (i.e. all tags generated by grpc_server_shutdown_and_notify must have been received, and at least one call to grpc_server_shutdown_and_notify must have been made). </p> |
| 507 | |
| 508 | </div> |
| 509 | </div> |
| 510 | <a class="anchor" id="a263c42634aa706458d691565943c6cae"></a> |
| 511 | <div class="memitem"> |
| 512 | <div class="memproto"> |
| 513 | <table class="memname"> |
| 514 | <tr> |
| 515 | <td class="memname">const <a class="el" href="structgrpc__channel__args.html">grpc_channel_args</a>* grpc_server_get_channel_args </td> |
| 516 | <td>(</td> |
| 517 | <td class="paramtype"><a class="el" href="structgrpc__server.html">grpc_server</a> * </td> |
| 518 | <td class="paramname"><em>server</em></td><td>)</td> |
| 519 | <td></td> |
| 520 | </tr> |
| 521 | </table> |
| 522 | </div><div class="memdoc"> |
| 523 | |
| 524 | </div> |
| 525 | </div> |
| 526 | <a class="anchor" id="a28a4697b500cd4867a9f6731c8e58a94"></a> |
| 527 | <div class="memitem"> |
| 528 | <div class="memproto"> |
| 529 | <table class="memname"> |
| 530 | <tr> |
| 531 | <td class="memname">int grpc_server_has_open_connections </td> |
| 532 | <td>(</td> |
| 533 | <td class="paramtype"><a class="el" href="structgrpc__server.html">grpc_server</a> * </td> |
| 534 | <td class="paramname"><em>server</em></td><td>)</td> |
| 535 | <td></td> |
| 536 | </tr> |
| 537 | </table> |
| 538 | </div><div class="memdoc"> |
| 539 | |
| 540 | </div> |
| 541 | </div> |
| 542 | <a class="anchor" id="a57b25ccc5ec64affd1ade91554a81092"></a> |
| 543 | <div class="memitem"> |
| 544 | <div class="memproto"> |
| 545 | <table class="memname"> |
| 546 | <tr> |
| 547 | <td class="memname">void grpc_server_listener_destroy_done </td> |
| 548 | <td>(</td> |
| 549 | <td class="paramtype">void * </td> |
| 550 | <td class="paramname"><em>s</em></td><td>)</td> |
| 551 | <td></td> |
| 552 | </tr> |
| 553 | </table> |
| 554 | </div><div class="memdoc"> |
| 555 | |
| 556 | </div> |
| 557 | </div> |
| 558 | <a class="anchor" id="ac174712f87fdae4b5757a1370e2a31cb"></a> |
| 559 | <div class="memitem"> |
| 560 | <div class="memproto"> |
| 561 | <table class="memname"> |
| 562 | <tr> |
| 563 | <td class="memname">void grpc_server_register_completion_queue </td> |
| 564 | <td>(</td> |
| 565 | <td class="paramtype"><a class="el" href="structgrpc__server.html">grpc_server</a> * </td> |
| 566 | <td class="paramname"><em>server</em>, </td> |
| 567 | </tr> |
| 568 | <tr> |
| 569 | <td class="paramkey"></td> |
| 570 | <td></td> |
| 571 | <td class="paramtype"><a class="el" href="structgrpc__completion__queue.html">grpc_completion_queue</a> * </td> |
| 572 | <td class="paramname"><em>cq</em> </td> |
| 573 | </tr> |
| 574 | <tr> |
| 575 | <td></td> |
| 576 | <td>)</td> |
| 577 | <td></td><td></td> |
| 578 | </tr> |
| 579 | </table> |
| 580 | </div><div class="memdoc"> |
| 581 | |
| 582 | <p>Register a completion queue with the server. </p> |
| 583 | <p>Must be done for any notification completion queue that is passed to grpc_server_request_*_call and to grpc_server_shutdown_and_notify. Must be performed prior to grpc_server_start. </p> |
| 584 | |
| 585 | </div> |
| 586 | </div> |
| 587 | <a class="anchor" id="a283062a2209f464f234b0e645c6fffb2"></a> |
| 588 | <div class="memitem"> |
| 589 | <div class="memproto"> |
| 590 | <table class="memname"> |
| 591 | <tr> |
| 592 | <td class="memname">void* grpc_server_register_method </td> |
| 593 | <td>(</td> |
| 594 | <td class="paramtype"><a class="el" href="structgrpc__server.html">grpc_server</a> * </td> |
| 595 | <td class="paramname"><em>server</em>, </td> |
| 596 | </tr> |
| 597 | <tr> |
| 598 | <td class="paramkey"></td> |
| 599 | <td></td> |
| 600 | <td class="paramtype">const char * </td> |
| 601 | <td class="paramname"><em>method</em>, </td> |
| 602 | </tr> |
| 603 | <tr> |
| 604 | <td class="paramkey"></td> |
| 605 | <td></td> |
| 606 | <td class="paramtype">const char * </td> |
| 607 | <td class="paramname"><em>host</em> </td> |
| 608 | </tr> |
| 609 | <tr> |
| 610 | <td></td> |
| 611 | <td>)</td> |
| 612 | <td></td><td></td> |
| 613 | </tr> |
| 614 | </table> |
| 615 | </div><div class="memdoc"> |
| 616 | |
| 617 | <p>Registers a method in the server. </p> |
| 618 | <p>Methods to this (host, method) pair will not be reported by grpc_server_request_call, but instead be reported by grpc_server_request_registered_call when passed the appropriate <a class="el" href="structregistered__method.html">registered_method</a> (as returned by this function). Must be called before grpc_server_start. Returns NULL on failure. </p> |
| 619 | |
| 620 | </div> |
| 621 | </div> |
| 622 | <a class="anchor" id="a419670c3509bc3c67c1344be3a1c4dbf"></a> |
| 623 | <div class="memitem"> |
| 624 | <div class="memproto"> |
| 625 | <table class="memname"> |
| 626 | <tr> |
| 627 | <td class="memname"><a class="el" href="grpc_8h.html#a0d5a8bdd6d53d209cacea4b6fa5d785b">grpc_call_error</a> grpc_server_request_call </td> |
| 628 | <td>(</td> |
| 629 | <td class="paramtype"><a class="el" href="structgrpc__server.html">grpc_server</a> * </td> |
| 630 | <td class="paramname"><em>server</em>, </td> |
| 631 | </tr> |
| 632 | <tr> |
| 633 | <td class="paramkey"></td> |
| 634 | <td></td> |
| 635 | <td class="paramtype"><a class="el" href="structgrpc__call.html">grpc_call</a> ** </td> |
| 636 | <td class="paramname"><em>call</em>, </td> |
| 637 | </tr> |
| 638 | <tr> |
| 639 | <td class="paramkey"></td> |
| 640 | <td></td> |
| 641 | <td class="paramtype"><a class="el" href="structgrpc__call__details.html">grpc_call_details</a> * </td> |
| 642 | <td class="paramname"><em>details</em>, </td> |
| 643 | </tr> |
| 644 | <tr> |
| 645 | <td class="paramkey"></td> |
| 646 | <td></td> |
| 647 | <td class="paramtype"><a class="el" href="structgrpc__metadata__array.html">grpc_metadata_array</a> * </td> |
| 648 | <td class="paramname"><em>request_metadata</em>, </td> |
| 649 | </tr> |
| 650 | <tr> |
| 651 | <td class="paramkey"></td> |
| 652 | <td></td> |
| 653 | <td class="paramtype"><a class="el" href="structgrpc__completion__queue.html">grpc_completion_queue</a> * </td> |
| 654 | <td class="paramname"><em>cq_bound_to_call</em>, </td> |
| 655 | </tr> |
| 656 | <tr> |
| 657 | <td class="paramkey"></td> |
| 658 | <td></td> |
| 659 | <td class="paramtype"><a class="el" href="structgrpc__completion__queue.html">grpc_completion_queue</a> * </td> |
| 660 | <td class="paramname"><em>cq_for_notification</em>, </td> |
| 661 | </tr> |
| 662 | <tr> |
| 663 | <td class="paramkey"></td> |
| 664 | <td></td> |
| 665 | <td class="paramtype">void * </td> |
| 666 | <td class="paramname"><em>tag_new</em> </td> |
| 667 | </tr> |
| 668 | <tr> |
| 669 | <td></td> |
| 670 | <td>)</td> |
| 671 | <td></td><td></td> |
| 672 | </tr> |
| 673 | </table> |
| 674 | </div><div class="memdoc"> |
| 675 | |
| 676 | <p>Request notification of a new call. </p> |
| 677 | <p>'cq_for_notification' must have been registered to the server via grpc_server_register_completion_queue. </p> |
| 678 | |
| 679 | </div> |
| 680 | </div> |
| 681 | <a class="anchor" id="a82bc2345fb113c461e255364d8d192b5"></a> |
| 682 | <div class="memitem"> |
| 683 | <div class="memproto"> |
| 684 | <table class="memname"> |
| 685 | <tr> |
| 686 | <td class="memname"><a class="el" href="grpc_8h.html#a0d5a8bdd6d53d209cacea4b6fa5d785b">grpc_call_error</a> grpc_server_request_registered_call </td> |
| 687 | <td>(</td> |
| 688 | <td class="paramtype"><a class="el" href="structgrpc__server.html">grpc_server</a> * </td> |
| 689 | <td class="paramname"><em>server</em>, </td> |
| 690 | </tr> |
| 691 | <tr> |
| 692 | <td class="paramkey"></td> |
| 693 | <td></td> |
| 694 | <td class="paramtype">void * </td> |
| 695 | <td class="paramname"><em>registered_method</em>, </td> |
| 696 | </tr> |
| 697 | <tr> |
| 698 | <td class="paramkey"></td> |
| 699 | <td></td> |
| 700 | <td class="paramtype"><a class="el" href="structgrpc__call.html">grpc_call</a> ** </td> |
| 701 | <td class="paramname"><em>call</em>, </td> |
| 702 | </tr> |
| 703 | <tr> |
| 704 | <td class="paramkey"></td> |
| 705 | <td></td> |
| 706 | <td class="paramtype"><a class="el" href="structgpr__timespec.html">gpr_timespec</a> * </td> |
| 707 | <td class="paramname"><em>deadline</em>, </td> |
| 708 | </tr> |
| 709 | <tr> |
| 710 | <td class="paramkey"></td> |
| 711 | <td></td> |
| 712 | <td class="paramtype"><a class="el" href="structgrpc__metadata__array.html">grpc_metadata_array</a> * </td> |
| 713 | <td class="paramname"><em>request_metadata</em>, </td> |
| 714 | </tr> |
| 715 | <tr> |
| 716 | <td class="paramkey"></td> |
| 717 | <td></td> |
| 718 | <td class="paramtype"><a class="el" href="structgrpc__byte__buffer.html">grpc_byte_buffer</a> ** </td> |
| 719 | <td class="paramname"><em>optional_payload</em>, </td> |
| 720 | </tr> |
| 721 | <tr> |
| 722 | <td class="paramkey"></td> |
| 723 | <td></td> |
| 724 | <td class="paramtype"><a class="el" href="structgrpc__completion__queue.html">grpc_completion_queue</a> * </td> |
| 725 | <td class="paramname"><em>cq_bound_to_call</em>, </td> |
| 726 | </tr> |
| 727 | <tr> |
| 728 | <td class="paramkey"></td> |
| 729 | <td></td> |
| 730 | <td class="paramtype"><a class="el" href="structgrpc__completion__queue.html">grpc_completion_queue</a> * </td> |
| 731 | <td class="paramname"><em>cq_for_notification</em>, </td> |
| 732 | </tr> |
| 733 | <tr> |
| 734 | <td class="paramkey"></td> |
| 735 | <td></td> |
| 736 | <td class="paramtype">void * </td> |
| 737 | <td class="paramname"><em>tag_new</em> </td> |
| 738 | </tr> |
| 739 | <tr> |
| 740 | <td></td> |
| 741 | <td>)</td> |
| 742 | <td></td><td></td> |
| 743 | </tr> |
| 744 | </table> |
| 745 | </div><div class="memdoc"> |
| 746 | |
| 747 | <p>Request notification of a new pre-registered call. </p> |
| 748 | <p>'cq_for_notification' must have been registered to the server via grpc_server_register_completion_queue. </p> |
| 749 | |
| 750 | </div> |
| 751 | </div> |
| 752 | <a class="anchor" id="a26fd88680fa7949f4af879acdc249d8d"></a> |
| 753 | <div class="memitem"> |
| 754 | <div class="memproto"> |
| 755 | <table class="memname"> |
| 756 | <tr> |
| 757 | <td class="memname">void grpc_server_setup_transport </td> |
| 758 | <td>(</td> |
| 759 | <td class="paramtype"><a class="el" href="structgrpc__server.html">grpc_server</a> * </td> |
| 760 | <td class="paramname"><em>s</em>, </td> |
| 761 | </tr> |
| 762 | <tr> |
| 763 | <td class="paramkey"></td> |
| 764 | <td></td> |
| 765 | <td class="paramtype"><a class="el" href="structgrpc__transport.html">grpc_transport</a> * </td> |
| 766 | <td class="paramname"><em>transport</em>, </td> |
| 767 | </tr> |
| 768 | <tr> |
| 769 | <td class="paramkey"></td> |
| 770 | <td></td> |
| 771 | <td class="paramtype"><a class="el" href="structgrpc__channel__filter.html">grpc_channel_filter</a> const ** </td> |
| 772 | <td class="paramname"><em>extra_filters</em>, </td> |
| 773 | </tr> |
| 774 | <tr> |
| 775 | <td class="paramkey"></td> |
| 776 | <td></td> |
| 777 | <td class="paramtype">size_t </td> |
| 778 | <td class="paramname"><em>num_extra_filters</em>, </td> |
| 779 | </tr> |
| 780 | <tr> |
| 781 | <td class="paramkey"></td> |
| 782 | <td></td> |
| 783 | <td class="paramtype"><a class="el" href="structgrpc__mdctx.html">grpc_mdctx</a> * </td> |
| 784 | <td class="paramname"><em>mdctx</em>, </td> |
| 785 | </tr> |
| 786 | <tr> |
| 787 | <td class="paramkey"></td> |
| 788 | <td></td> |
| 789 | <td class="paramtype">const <a class="el" href="structgrpc__channel__args.html">grpc_channel_args</a> * </td> |
| 790 | <td class="paramname"><em>args</em> </td> |
| 791 | </tr> |
| 792 | <tr> |
| 793 | <td></td> |
| 794 | <td>)</td> |
| 795 | <td></td><td></td> |
| 796 | </tr> |
| 797 | </table> |
| 798 | </div><div class="memdoc"> |
| 799 | |
| 800 | </div> |
| 801 | </div> |
| 802 | <a class="anchor" id="a56fffa23c1c4bab9a469e2ac607b6db7"></a> |
| 803 | <div class="memitem"> |
| 804 | <div class="memproto"> |
| 805 | <table class="memname"> |
| 806 | <tr> |
| 807 | <td class="memname">void grpc_server_shutdown_and_notify </td> |
| 808 | <td>(</td> |
| 809 | <td class="paramtype"><a class="el" href="structgrpc__server.html">grpc_server</a> * </td> |
| 810 | <td class="paramname"><em>server</em>, </td> |
| 811 | </tr> |
| 812 | <tr> |
| 813 | <td class="paramkey"></td> |
| 814 | <td></td> |
| 815 | <td class="paramtype"><a class="el" href="structgrpc__completion__queue.html">grpc_completion_queue</a> * </td> |
| 816 | <td class="paramname"><em>cq</em>, </td> |
| 817 | </tr> |
| 818 | <tr> |
| 819 | <td class="paramkey"></td> |
| 820 | <td></td> |
| 821 | <td class="paramtype">void * </td> |
| 822 | <td class="paramname"><em>tag</em> </td> |
| 823 | </tr> |
| 824 | <tr> |
| 825 | <td></td> |
| 826 | <td>)</td> |
| 827 | <td></td><td></td> |
| 828 | </tr> |
| 829 | </table> |
| 830 | </div><div class="memdoc"> |
| 831 | |
| 832 | <p>Begin shutting down a server. </p> |
| 833 | <p>After completion, no new calls or connections will be admitted. Existing calls will be allowed to complete. Send a GRPC_OP_COMPLETE event when there are no more calls being serviced. Shutdown is idempotent, and all tags will be notified at once if multiple grpc_server_shutdown_and_notify calls are made. 'cq' must have been registered to this server via grpc_server_register_completion_queue. </p> |
| 834 | |
| 835 | </div> |
| 836 | </div> |
| 837 | <a class="anchor" id="ac5010d26419e14f5a9ab2fa86a4f7d1e"></a> |
| 838 | <div class="memitem"> |
| 839 | <div class="memproto"> |
| 840 | <table class="memname"> |
| 841 | <tr> |
| 842 | <td class="memname">void grpc_server_start </td> |
| 843 | <td>(</td> |
| 844 | <td class="paramtype"><a class="el" href="structgrpc__server.html">grpc_server</a> * </td> |
| 845 | <td class="paramname"><em>server</em></td><td>)</td> |
| 846 | <td></td> |
| 847 | </tr> |
| 848 | </table> |
| 849 | </div><div class="memdoc"> |
| 850 | |
| 851 | <p>Start a server - tells all listeners to start listening. </p> |
| 852 | |
| 853 | </div> |
| 854 | </div> |
| 855 | </div><!-- contents --> |
| 856 | <!-- start footer part --> |
| 857 | <hr class="footer"/><address class="footer"><small> |
| 858 | Generated on Wed Aug 5 2015 08:17:07 for GRPC Core by  <a href="http://www.doxygen.org/index.html"> |
| 859 | <img class="footer" src="doxygen.png" alt="doxygen"/> |
| 860 | </a> 1.8.6 |
| 861 | </small></address> |
| 862 | </body> |
| 863 | </html> |