| 1 |
|
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 6 |
<meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 7 |
<meta name="generator" content="Doxygen 1.9.8"/> |
| 8 |
<title>NATS C Client with JetStream and Streaming support: Streaming Subscription</title> |
| 9 |
<link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 |
<script type="text/javascript" src="jquery.js"></script> |
| 11 |
<script type="text/javascript" src="dynsections.js"></script> |
| 12 |
<link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 |
<script type="text/javascript" src="resize.js"></script> |
| 14 |
<script type="text/javascript" src="navtreedata.js"></script> |
| 15 |
<script type="text/javascript" src="navtree.js"></script> |
| 16 |
<link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 17 |
<script type="text/javascript" src="search/searchdata.js"></script> |
| 18 |
<script type="text/javascript" src="search/search.js"></script> |
| 19 |
<link href="customdoxygen.css" rel="stylesheet" type="text/css" /> |
| 20 |
</head> |
| 21 |
<body> |
| 22 |
<div id="top"> |
| 23 |
<div id="titlearea"> |
| 24 |
<table cellspacing="0" cellpadding="0"> |
| 25 |
<tbody> |
| 26 |
<tr style="height: 56px;"> |
| 27 |
<td id="projectalign" style="padding-left: 0.5em;" > |
| 28 |
<div id="projectname">NATS C Client with JetStream and Streaming support |
| 29 |
 <span id="projectnumber">3.12.0</span> |
| 30 |
</div> |
| 31 |
<div id="projectbrief">The nats.io C Client, Supported by Synadia Communications Inc.</div> |
| 32 |
</td> |
| 33 |
</tr> |
| 34 |
</tbody> |
| 35 |
</table> |
| 36 |
</div> |
| 37 |
|
| 38 |
|
| 39 |
<script type="text/javascript"> |
| 40 |
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ |
| 41 |
var searchBox = new SearchBox("searchBox", "search/",'.html'); |
| 42 |
/* @license-end */ |
| 43 |
</script> |
| 44 |
<script type="text/javascript" src="menudata.js"></script> |
| 45 |
<script type="text/javascript" src="menu.js"></script> |
| 46 |
<script type="text/javascript"> |
| 47 |
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ |
| 48 |
$(function() { |
| 49 |
initMenu('',true,false,'search.php','Search'); |
| 50 |
$(document).ready(function() { init_search(); }); |
| 51 |
}); |
| 52 |
/* @license-end */ |
| 53 |
</script> |
| 54 |
<div id="main-nav"></div> |
| 55 |
</div> |
| 56 |
<div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 57 |
<div id="nav-tree"> |
| 58 |
<div id="nav-tree-contents"> |
| 59 |
<div id="nav-sync" class="sync"></div> |
| 60 |
</div> |
| 61 |
</div> |
| 62 |
<div id="splitbar" style="-moz-user-select:none;" |
| 63 |
class="ui-resizable-handle"> |
| 64 |
</div> |
| 65 |
</div> |
| 66 |
<script type="text/javascript"> |
| 67 |
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ |
| 68 |
$(document).ready(function(){initNavTree('group__stan_sub_group.html',''); initResizable(); }); |
| 69 |
/* @license-end */ |
| 70 |
</script> |
| 71 |
<div id="doc-content"> |
| 72 |
|
| 73 |
<div id="MSearchSelectWindow" |
| 74 |
onmouseover="return searchBox.OnSearchSelectShow()" |
| 75 |
onmouseout="return searchBox.OnSearchSelectHide()" |
| 76 |
onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 77 |
</div> |
| 78 |
|
| 79 |
|
| 80 |
<div id="MSearchResultsWindow"> |
| 81 |
<div id="MSearchResults"> |
| 82 |
<div class="SRPage"> |
| 83 |
<div id="SRIndex"> |
| 84 |
<div id="SRResults"></div> |
| 85 |
<div class="SRStatus" id="Loading">Loading...</div> |
| 86 |
<div class="SRStatus" id="Searching">Searching...</div> |
| 87 |
<div class="SRStatus" id="NoMatches">No Matches</div> |
| 88 |
</div> |
| 89 |
</div> |
| 90 |
</div> |
| 91 |
</div> |
| 92 |
|
| 93 |
<div class="header"> |
| 94 |
<div class="summary"> |
| 95 |
<a href="#func-members">Functions</a> </div> |
| 96 |
<div class="headertitle"><div class="title">Streaming Subscription<div class="ingroups"><a class="el" href="group__func_group.html">Functions</a></div></div></div> |
| 97 |
</div> |
| 98 |
<div class="contents"> |
| 99 |
<table class="memberdecls"> |
| 100 |
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a> |
| 101 |
Functions</h2></td></tr> |
| 102 |
<tr class="memitem:ga7b039908ec45cfc2c16ec61ba8daca9d" id="r_ga7b039908ec45cfc2c16ec61ba8daca9d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80">natsStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__stan_sub_group.html#ga7b039908ec45cfc2c16ec61ba8daca9d">stanSubscription_SetOnCompleteCB</a> (<a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5">stanSubscription</a> *sub, <a class="el" href="group__callbacks_group.html#ga245131e64f1d0dff7edc8ed874a07e9a">natsOnCompleteCB</a> cb, void *closure)</td></tr> |
| 103 |
<tr class="memdesc:ga7b039908ec45cfc2c16ec61ba8daca9d"><td class="mdescLeft"> </td><td class="mdescRight">Sets a completion callback. <br /></td></tr> |
| 104 |
<tr class="separator:ga7b039908ec45cfc2c16ec61ba8daca9d"><td class="memSeparator" colspan="2"> </td></tr> |
| 105 |
<tr class="memitem:ga3a1cca9fa3ea54fcf7a43fd1335a26d3" id="r_ga3a1cca9fa3ea54fcf7a43fd1335a26d3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80">natsStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__stan_sub_group.html#ga3a1cca9fa3ea54fcf7a43fd1335a26d3">stanSubscription_AckMsg</a> (<a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5">stanSubscription</a> *sub, <a class="el" href="group__types_group.html#ga2cf5db7703b42d97abe56a3e83b2a87d">stanMsg</a> *msg)</td></tr> |
| 106 |
<tr class="memdesc:ga3a1cca9fa3ea54fcf7a43fd1335a26d3"><td class="mdescLeft"> </td><td class="mdescRight">Acknowledge a message. <br /></td></tr> |
| 107 |
<tr class="separator:ga3a1cca9fa3ea54fcf7a43fd1335a26d3"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 |
<tr class="memitem:gafa428a7e0f6800216cb06fd738bd235e" id="r_gafa428a7e0f6800216cb06fd738bd235e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80">natsStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__stan_sub_group.html#gafa428a7e0f6800216cb06fd738bd235e">stanSubscription_Unsubscribe</a> (<a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5">stanSubscription</a> *sub)</td></tr> |
| 109 |
<tr class="memdesc:gafa428a7e0f6800216cb06fd738bd235e"><td class="mdescLeft"> </td><td class="mdescRight">Permanently remove a subscription. <br /></td></tr> |
| 110 |
<tr class="separator:gafa428a7e0f6800216cb06fd738bd235e"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 |
<tr class="memitem:gacfa3a7b4fa333c84acfa7521fbbb5bcc" id="r_gacfa3a7b4fa333c84acfa7521fbbb5bcc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80">natsStatus</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__stan_sub_group.html#gacfa3a7b4fa333c84acfa7521fbbb5bcc">stanSubscription_Close</a> (<a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5">stanSubscription</a> *sub)</td></tr> |
| 112 |
<tr class="memdesc:gacfa3a7b4fa333c84acfa7521fbbb5bcc"><td class="mdescLeft"> </td><td class="mdescRight">Closes the subscription. <br /></td></tr> |
| 113 |
<tr class="separator:gacfa3a7b4fa333c84acfa7521fbbb5bcc"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 |
<tr class="memitem:ga3f6ce924f6a1830a55e30e9910aad4ba" id="r_ga3f6ce924f6a1830a55e30e9910aad4ba"><td class="memItemLeft" align="right" valign="top"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__stan_sub_group.html#ga3f6ce924f6a1830a55e30e9910aad4ba">stanSubscription_Destroy</a> (<a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5">stanSubscription</a> *sub)</td></tr> |
| 115 |
<tr class="memdesc:ga3f6ce924f6a1830a55e30e9910aad4ba"><td class="mdescLeft"> </td><td class="mdescRight">Destroys the subscription. <br /></td></tr> |
| 116 |
<tr class="separator:ga3f6ce924f6a1830a55e30e9910aad4ba"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 |
</table> |
| 118 |
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 119 |
<p>NATS Streaming Subscriptions. </p> |
| 120 |
<h2 class="groupheader">Function Documentation</h2> |
| 121 |
<a id="ga7b039908ec45cfc2c16ec61ba8daca9d" name="ga7b039908ec45cfc2c16ec61ba8daca9d"></a> |
| 122 |
<h2 class="memtitle"><span class="permalink"><a href="#ga7b039908ec45cfc2c16ec61ba8daca9d">◆ </a></span>stanSubscription_SetOnCompleteCB()</h2> |
| 123 |
|
| 124 |
<div class="memitem"> |
| 125 |
<div class="memproto"> |
| 126 |
<table class="memname"> |
| 127 |
<tr> |
| 128 |
<td class="memname"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80">natsStatus</a> stanSubscription_SetOnCompleteCB </td> |
| 129 |
<td>(</td> |
| 130 |
<td class="paramtype"><a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5">stanSubscription</a> * </td> |
| 131 |
<td class="paramname"><em>sub</em>, </td> |
| 132 |
</tr> |
| 133 |
<tr> |
| 134 |
<td class="paramkey"></td> |
| 135 |
<td></td> |
| 136 |
<td class="paramtype"><a class="el" href="group__callbacks_group.html#ga245131e64f1d0dff7edc8ed874a07e9a">natsOnCompleteCB</a> </td> |
| 137 |
<td class="paramname"><em>cb</em>, </td> |
| 138 |
</tr> |
| 139 |
<tr> |
| 140 |
<td class="paramkey"></td> |
| 141 |
<td></td> |
| 142 |
<td class="paramtype">void * </td> |
| 143 |
<td class="paramname"><em>closure</em> </td> |
| 144 |
</tr> |
| 145 |
<tr> |
| 146 |
<td></td> |
| 147 |
<td>)</td> |
| 148 |
<td></td><td></td> |
| 149 |
</tr> |
| 150 |
</table> |
| 151 |
</div><div class="memdoc"> |
| 152 |
<p>In order to make sure that an asynchronous subscription's message handler is no longer invoked once the subscription is closed (or unsubscribed) (<a class="el" href="group__stan_sub_group.html#gacfa3a7b4fa333c84acfa7521fbbb5bcc" title="Closes the subscription.">stanSubscription_Close</a>, <a class="el" href="group__stan_sub_group.html#gafa428a7e0f6800216cb06fd738bd235e" title="Permanently remove a subscription.">stanSubscription_Unsubscribe</a>), the subscription should be closed from the message handler itslef.</p> |
| 153 |
<p>If the application closes the subscription from a different thread and immediately frees resources needed in the message handler, there is a risk of a crash since the subscription's message handler may still be invoked one last time or already in the process of executing.</p> |
| 154 |
<p>To address this, the user can set a callback that will be invoked after the subscription is closed and the message handler has returned.</p> |
| 155 |
<dl class="section note"><dt>Note</dt><dd>You don't need to call this function if you are not freeing resources needed in the message handler or if you always close the subscription from the message handler itself.</dd></dl> |
| 156 |
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__callbacks_group.html#ga245131e64f1d0dff7edc8ed874a07e9a" title="Callback used to notify that an object lifecycle is complete.">natsOnCompleteCB</a></dd></dl> |
| 157 |
<dl class="params"><dt>Parameters</dt><dd> |
| 158 |
<table class="params"> |
| 159 |
<tr><td class="paramname">sub</td><td>the pointer to the <a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5" title="Interest on a given channel.">stanSubscription</a> object </td></tr> |
| 160 |
<tr><td class="paramname">cb</td><td>the callback to invoke when the last message of a closed subscription has been dispatched </td></tr> |
| 161 |
<tr><td class="paramname">closure</td><td>the pointer to a user defined object (possibly <code>NULL</code>) that will be passed to the callback </td></tr> |
| 162 |
</table> |
| 163 |
</dd> |
| 164 |
</dl> |
| 165 |
|
| 166 |
</div> |
| 167 |
</div> |
| 168 |
<a id="ga3a1cca9fa3ea54fcf7a43fd1335a26d3" name="ga3a1cca9fa3ea54fcf7a43fd1335a26d3"></a> |
| 169 |
<h2 class="memtitle"><span class="permalink"><a href="#ga3a1cca9fa3ea54fcf7a43fd1335a26d3">◆ </a></span>stanSubscription_AckMsg()</h2> |
| 170 |
|
| 171 |
<div class="memitem"> |
| 172 |
<div class="memproto"> |
| 173 |
<table class="memname"> |
| 174 |
<tr> |
| 175 |
<td class="memname"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80">natsStatus</a> stanSubscription_AckMsg </td> |
| 176 |
<td>(</td> |
| 177 |
<td class="paramtype"><a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5">stanSubscription</a> * </td> |
| 178 |
<td class="paramname"><em>sub</em>, </td> |
| 179 |
</tr> |
| 180 |
<tr> |
| 181 |
<td class="paramkey"></td> |
| 182 |
<td></td> |
| 183 |
<td class="paramtype"><a class="el" href="group__types_group.html#ga2cf5db7703b42d97abe56a3e83b2a87d">stanMsg</a> * </td> |
| 184 |
<td class="paramname"><em>msg</em> </td> |
| 185 |
</tr> |
| 186 |
<tr> |
| 187 |
<td></td> |
| 188 |
<td>)</td> |
| 189 |
<td></td><td></td> |
| 190 |
</tr> |
| 191 |
</table> |
| 192 |
</div><div class="memdoc"> |
| 193 |
<p>If the subscription is created with manual acknowledgment mode (see <a class="el" href="group__stan_sub_opts_group.html#ga6f49ae2629e49d2bfa35990cf030bf83" title="Sets the subscription's acknowledgment mode.">stanSubOptions_SetManualAckMode</a>) then it is the user responsibility to acknowledge received messages when appropriate.</p> |
| 194 |
<dl class="params"><dt>Parameters</dt><dd> |
| 195 |
<table class="params"> |
| 196 |
<tr><td class="paramname">sub</td><td>the pointer to the <a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5" title="Interest on a given channel.">stanSubscription</a> object. </td></tr> |
| 197 |
<tr><td class="paramname">msg</td><td>the message to acknowledge. </td></tr> |
| 198 |
</table> |
| 199 |
</dd> |
| 200 |
</dl> |
| 201 |
|
| 202 |
</div> |
| 203 |
</div> |
| 204 |
<a id="gafa428a7e0f6800216cb06fd738bd235e" name="gafa428a7e0f6800216cb06fd738bd235e"></a> |
| 205 |
<h2 class="memtitle"><span class="permalink"><a href="#gafa428a7e0f6800216cb06fd738bd235e">◆ </a></span>stanSubscription_Unsubscribe()</h2> |
| 206 |
|
| 207 |
<div class="memitem"> |
| 208 |
<div class="memproto"> |
| 209 |
<table class="memname"> |
| 210 |
<tr> |
| 211 |
<td class="memname"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80">natsStatus</a> stanSubscription_Unsubscribe </td> |
| 212 |
<td>(</td> |
| 213 |
<td class="paramtype"><a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5">stanSubscription</a> * </td> |
| 214 |
<td class="paramname"><em>sub</em></td><td>)</td> |
| 215 |
<td></td> |
| 216 |
</tr> |
| 217 |
</table> |
| 218 |
</div><div class="memdoc"> |
| 219 |
<p>Removes interest on the channel. The subscription may still have a callback in progress, in that case, the subscription will still be valid until the callback returns.</p> |
| 220 |
<p>For non-durable subscriptions, <a class="el" href="group__stan_sub_group.html#gafa428a7e0f6800216cb06fd738bd235e" title="Permanently remove a subscription.">stanSubscription_Unsubscribe</a> and <a class="el" href="group__stan_sub_group.html#gacfa3a7b4fa333c84acfa7521fbbb5bcc" title="Closes the subscription.">stanSubscription_Close</a> have the same effect.</p> |
| 221 |
<p>For durable subscriptions, calling this function causes the server to remove the durable subscription (instead of simply suspending it). It means that once this call is made, calling <a class="el" href="group__stan_conn_sub_group.html#gae545358fdc493baf6d29429a8156781f" title="Creates a subscription.">stanConnection_Subscribe()</a> with the same durable name creates a brand new durable subscription, instead of simply resuming delivery.</p> |
| 222 |
<dl class="section warning"><dt>Warning</dt><dd>See warning about connecting to a NATS Server v2.2.0+ in <a class="el" href="group__stan_conn_mgt_group.html#ga35e0e6e5e3b7f3818a3ac3600efb8f8f" title="Connects to a NATS Streaming Server using the provided options.">stanConnection_Connect()</a>.</dd></dl> |
| 223 |
<dl class="params"><dt>Parameters</dt><dd> |
| 224 |
<table class="params"> |
| 225 |
<tr><td class="paramname">sub</td><td>the pointer to the <a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5" title="Interest on a given channel.">stanSubscription</a> object. </td></tr> |
| 226 |
</table> |
| 227 |
</dd> |
| 228 |
</dl> |
| 229 |
|
| 230 |
</div> |
| 231 |
</div> |
| 232 |
<a id="gacfa3a7b4fa333c84acfa7521fbbb5bcc" name="gacfa3a7b4fa333c84acfa7521fbbb5bcc"></a> |
| 233 |
<h2 class="memtitle"><span class="permalink"><a href="#gacfa3a7b4fa333c84acfa7521fbbb5bcc">◆ </a></span>stanSubscription_Close()</h2> |
| 234 |
|
| 235 |
<div class="memitem"> |
| 236 |
<div class="memproto"> |
| 237 |
<table class="memname"> |
| 238 |
<tr> |
| 239 |
<td class="memname"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80">natsStatus</a> stanSubscription_Close </td> |
| 240 |
<td>(</td> |
| 241 |
<td class="paramtype"><a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5">stanSubscription</a> * </td> |
| 242 |
<td class="paramname"><em>sub</em></td><td>)</td> |
| 243 |
<td></td> |
| 244 |
</tr> |
| 245 |
</table> |
| 246 |
</div><div class="memdoc"> |
| 247 |
<p>Similar to <a class="el" href="group__stan_sub_group.html#gafa428a7e0f6800216cb06fd738bd235e" title="Permanently remove a subscription.">stanSubscription_Unsubscribe()</a> except that durable interest is not removed in the server. The durable subscription can therefore be resumed.</p> |
| 248 |
<dl class="section warning"><dt>Warning</dt><dd>See warning about connecting to a NATS Server v2.2.0+ in <a class="el" href="group__stan_conn_mgt_group.html#ga35e0e6e5e3b7f3818a3ac3600efb8f8f" title="Connects to a NATS Streaming Server using the provided options.">stanConnection_Connect()</a>.</dd></dl> |
| 249 |
<dl class="params"><dt>Parameters</dt><dd> |
| 250 |
<table class="params"> |
| 251 |
<tr><td class="paramname">sub</td><td>the pointer to the <a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5" title="Interest on a given channel.">stanSubscription</a> object. </td></tr> |
| 252 |
</table> |
| 253 |
</dd> |
| 254 |
</dl> |
| 255 |
|
| 256 |
</div> |
| 257 |
</div> |
| 258 |
<a id="ga3f6ce924f6a1830a55e30e9910aad4ba" name="ga3f6ce924f6a1830a55e30e9910aad4ba"></a> |
| 259 |
<h2 class="memtitle"><span class="permalink"><a href="#ga3f6ce924f6a1830a55e30e9910aad4ba">◆ </a></span>stanSubscription_Destroy()</h2> |
| 260 |
|
| 261 |
<div class="memitem"> |
| 262 |
<div class="memproto"> |
| 263 |
<table class="memname"> |
| 264 |
<tr> |
| 265 |
<td class="memname"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> void stanSubscription_Destroy </td> |
| 266 |
<td>(</td> |
| 267 |
<td class="paramtype"><a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5">stanSubscription</a> * </td> |
| 268 |
<td class="paramname"><em>sub</em></td><td>)</td> |
| 269 |
<td></td> |
| 270 |
</tr> |
| 271 |
</table> |
| 272 |
</div><div class="memdoc"> |
| 273 |
<p>Destroys the subscription object, freeing up memory. If not already done, this call will removes interest on the subject.</p> |
| 274 |
<dl class="params"><dt>Parameters</dt><dd> |
| 275 |
<table class="params"> |
| 276 |
<tr><td class="paramname">sub</td><td>the pointer to the <a class="el" href="group__types_group.html#gae4dae869fb614536f0f027c2e2660cc5" title="Interest on a given channel.">stanSubscription</a> object to destroy. </td></tr> |
| 277 |
</table> |
| 278 |
</dd> |
| 279 |
</dl> |
| 280 |
|
| 281 |
</div> |
| 282 |
</div> |
| 283 |
</div> |
| 284 |
</div> |
| 285 |
|
| 286 |
|
| 287 |
<div id="nav-path" class="navpath"> |
| 288 |
<ul> |
| 289 |
<li class="footer">NATS.IO Supported By Synadia Communications Inc. |
| 290 |
<a href="http://www.nats.io"> |
| 291 |
</a></li> |
| 292 |
</ul> |
| 293 |
</div> |
| 294 |
</body> |
| 295 |
</html> |