Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADDED] NoEcho feature #150

Merged
merged 2 commits into from
Jul 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ if(NATS_UPDATE_VERSION)
# Versionning

set(NATS_VERSION_MAJOR 1)
set(NATS_VERSION_MINOR 7)
set(NATS_VERSION_PATCH 6)
set(NATS_VERSION_MINOR 8)
set(NATS_VERSION_PATCH 0)
set(NATS_VERSION_SUFFIX "")

set(NATS_VERSION_REQUIRED_NUMBER 0x010100)
Expand Down
6 changes: 6 additions & 0 deletions doc/html/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ <h3><a class="anchor" id="index_n"></a>- n -</h3><ul>
<li>NATS_NO_SERVER
: <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80a47034d8889521bbd300f45fdc19e1127">status.h</a>
</li>
<li>NATS_NO_SERVER_SUPPORT
: <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80a8a4e298931ba0698a72e397b1b57c885">status.h</a>
</li>
<li>NATS_NOT_FOUND
: <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80ad0229a12b17d3d12a28efed6213720d8">status.h</a>
</li>
Expand Down Expand Up @@ -522,6 +525,9 @@ <h3><a class="anchor" id="index_n"></a>- n -</h3><ul>
<li>natsOptions_SetName()
: <a class="el" href="group__opts_group.html#ga1c529d347be0fe2eec17c7f4698e283e">nats.h</a>
</li>
<li>natsOptions_SetNoEcho()
: <a class="el" href="group__opts_group.html#ga4f694b87039cedaa65cd25656b14d1a3">nats.h</a>
</li>
<li>natsOptions_SetNoRandomize()
: <a class="el" href="group__opts_group.html#gaabf8763b931dcf389c83fd95d760a413">nats.h</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions doc/html/globals_eval.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ <h3><a class="anchor" id="index_n"></a>- n -</h3><ul>
<li>NATS_NO_SERVER
: <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80a47034d8889521bbd300f45fdc19e1127">status.h</a>
</li>
<li>NATS_NO_SERVER_SUPPORT
: <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80a8a4e298931ba0698a72e397b1b57c885">status.h</a>
</li>
<li>NATS_NOT_FOUND
: <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80ad0229a12b17d3d12a28efed6213720d8">status.h</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions doc/html/globals_func.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ <h3><a class="anchor" id="index_n"></a>- n -</h3><ul>
<li>natsOptions_SetName()
: <a class="el" href="group__opts_group.html#ga1c529d347be0fe2eec17c7f4698e283e">nats.h</a>
</li>
<li>natsOptions_SetNoEcho()
: <a class="el" href="group__opts_group.html#ga4f694b87039cedaa65cd25656b14d1a3">nats.h</a>
</li>
<li>natsOptions_SetNoRandomize()
: <a class="el" href="group__opts_group.html#gaabf8763b931dcf389c83fd95d760a413">nats.h</a>
</li>
Expand Down
39 changes: 39 additions & 0 deletions doc/html/group__opts_group.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@
<tr class="memitem:ga70aa85319933d78c0076cc862fa3e5a6"><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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__opts_group.html#ga70aa85319933d78c0076cc862fa3e5a6">natsOptions_UseOldRequestStyle</a> (<a class="el" href="group__types_group.html#gabcc48b40a81fe302188f4ee06ea9c54e">natsOptions</a> *opts, bool useOldStyle)</td></tr>
<tr class="memdesc:ga70aa85319933d78c0076cc862fa3e5a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Switches the use of old style requests. <a href="#ga70aa85319933d78c0076cc862fa3e5a6">More...</a><br /></td></tr>
<tr class="separator:ga70aa85319933d78c0076cc862fa3e5a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4f694b87039cedaa65cd25656b14d1a3"><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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__opts_group.html#ga4f694b87039cedaa65cd25656b14d1a3">natsOptions_SetNoEcho</a> (<a class="el" href="group__types_group.html#gabcc48b40a81fe302188f4ee06ea9c54e">natsOptions</a> *opts, bool noEcho)</td></tr>
<tr class="memdesc:ga4f694b87039cedaa65cd25656b14d1a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets if connection receives its own messages. <a href="#ga4f694b87039cedaa65cd25656b14d1a3">More...</a><br /></td></tr>
<tr class="separator:ga4f694b87039cedaa65cd25656b14d1a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga93d8068cd6fff53b7f8e1c403db45eb9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__opts_group.html#ga93d8068cd6fff53b7f8e1c403db45eb9">natsOptions_Destroy</a> (<a class="el" href="group__types_group.html#gabcc48b40a81fe302188f4ee06ea9c54e">natsOptions</a> *opts)</td></tr>
<tr class="memdesc:ga93d8068cd6fff53b7f8e1c403db45eb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys a <a class="el" href="group__types_group.html#gabcc48b40a81fe302188f4ee06ea9c54e" title="Way to configure a natsConnection. ">natsOptions</a> object. <a href="#ga93d8068cd6fff53b7f8e1c403db45eb9">More...</a><br /></td></tr>
<tr class="separator:ga93d8068cd6fff53b7f8e1c403db45eb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
Expand Down Expand Up @@ -1492,6 +1495,42 @@ <h2 class="groupheader">Function Documentation</h2>
</dd>
</dl>

</div>
</div>
<a class="anchor" id="ga4f694b87039cedaa65cd25656b14d1a3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> <a class="el" href="status_8h.html#a36c934157b663b7b5fb5d6609c897c80">natsStatus</a> natsOptions_SetNoEcho </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__types_group.html#gabcc48b40a81fe302188f4ee06ea9c54e">natsOptions</a> *&#160;</td>
<td class="paramname"><em>opts</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>noEcho</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>This configures whether the server will echo back messages that are sent on this connection if there is also matching subscriptions.</p>
<p>Set this to <code>true</code> to prevent the server from sending back messages produced by this connection. The default is false, that is, messages originating from this connection will be sent by the server if the connection has matching subscriptions.</p>
<dl class="section note"><dt>Note</dt><dd>This is supported on servers &gt;= version 1.2.0. Calling <a class="el" href="group__conn_mgt_group.html#ga740be1ba16a8570eb98ef6755ebf52ce" title="Connects to a NATS Server using the provided options. ">natsConnection_Connect()</a> with the option set to <code>true</code> to server below this version will return the <code>NATS_NO_SERVER_SUPPORT</code> error.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">opts</td><td>the pointer to the <a class="el" href="group__types_group.html#gabcc48b40a81fe302188f4ee06ea9c54e" title="Way to configure a natsConnection. ">natsOptions</a> object; </td></tr>
<tr><td class="paramname">noEcho</td><td>a boolean indicating if sent messages can be delivered back to this connection or not. </td></tr>
</table>
</dd>
</dl>

</div>
</div>
<a class="anchor" id="ga93d8068cd6fff53b7f8e1c403db45eb9"></a>
Expand Down
1 change: 1 addition & 0 deletions doc/html/group__opts_group.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ var group__opts_group =
[ "natsOptions_IPResolutionOrder", "group__opts_group.html#ga7ca713c7532eff4d41a492e95b8822cf", null ],
[ "natsOptions_SetSendAsap", "group__opts_group.html#ga8f06568cc3319a5a0eef9f80282034ca", null ],
[ "natsOptions_UseOldRequestStyle", "group__opts_group.html#ga70aa85319933d78c0076cc862fa3e5a6", null ],
[ "natsOptions_SetNoEcho", "group__opts_group.html#ga4f694b87039cedaa65cd25656b14d1a3", null ],
[ "natsOptions_Destroy", "group__opts_group.html#ga93d8068cd6fff53b7f8e1c403db45eb9", null ]
];
3 changes: 3 additions & 0 deletions doc/html/nats_8h.html
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@
<tr class="memitem:ga70aa85319933d78c0076cc862fa3e5a6"><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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__opts_group.html#ga70aa85319933d78c0076cc862fa3e5a6">natsOptions_UseOldRequestStyle</a> (<a class="el" href="group__types_group.html#gabcc48b40a81fe302188f4ee06ea9c54e">natsOptions</a> *opts, bool useOldStyle)</td></tr>
<tr class="memdesc:ga70aa85319933d78c0076cc862fa3e5a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Switches the use of old style requests. <a href="group__opts_group.html#ga70aa85319933d78c0076cc862fa3e5a6">More...</a><br /></td></tr>
<tr class="separator:ga70aa85319933d78c0076cc862fa3e5a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4f694b87039cedaa65cd25656b14d1a3"><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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__opts_group.html#ga4f694b87039cedaa65cd25656b14d1a3">natsOptions_SetNoEcho</a> (<a class="el" href="group__types_group.html#gabcc48b40a81fe302188f4ee06ea9c54e">natsOptions</a> *opts, bool noEcho)</td></tr>
<tr class="memdesc:ga4f694b87039cedaa65cd25656b14d1a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets if connection receives its own messages. <a href="group__opts_group.html#ga4f694b87039cedaa65cd25656b14d1a3">More...</a><br /></td></tr>
<tr class="separator:ga4f694b87039cedaa65cd25656b14d1a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga93d8068cd6fff53b7f8e1c403db45eb9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__opts_group.html#ga93d8068cd6fff53b7f8e1c403db45eb9">natsOptions_Destroy</a> (<a class="el" href="group__types_group.html#gabcc48b40a81fe302188f4ee06ea9c54e">natsOptions</a> *opts)</td></tr>
<tr class="memdesc:ga93d8068cd6fff53b7f8e1c403db45eb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys a <a class="el" href="group__types_group.html#gabcc48b40a81fe302188f4ee06ea9c54e" title="Way to configure a natsConnection. ">natsOptions</a> object. <a href="group__opts_group.html#ga93d8068cd6fff53b7f8e1c403db45eb9">More...</a><br /></td></tr>
<tr class="separator:ga93d8068cd6fff53b7f8e1c403db45eb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
Expand Down
1 change: 1 addition & 0 deletions doc/html/nats_8h.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ var nats_8h =
[ "natsOptions_IPResolutionOrder", "group__opts_group.html#ga7ca713c7532eff4d41a492e95b8822cf", null ],
[ "natsOptions_SetSendAsap", "group__opts_group.html#ga8f06568cc3319a5a0eef9f80282034ca", null ],
[ "natsOptions_UseOldRequestStyle", "group__opts_group.html#ga70aa85319933d78c0076cc862fa3e5a6", null ],
[ "natsOptions_SetNoEcho", "group__opts_group.html#ga4f694b87039cedaa65cd25656b14d1a3", null ],
[ "natsOptions_Destroy", "group__opts_group.html#ga93d8068cd6fff53b7f8e1c403db45eb9", null ],
[ "natsInbox_Create", "group__inbox_group.html#ga3d59c517d5aa0827b22e66a308a8fe6e", null ],
[ "natsInbox_Destroy", "group__inbox_group.html#gac3db6bd01235144886cb0ee5cf444048", null ],
Expand Down
3 changes: 2 additions & 1 deletion doc/html/nats_8h_source.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/html/navtreedata.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var NAVTREE =
var NAVTREEINDEX =
[
"deprecated.html",
"group__sub_group.html#ga38f1e41fc7619101fc4aa52014dd5428"
"group__sub_group.html#ga24f1636869e26661ce62c9c9f4d80823"
];

var SYNCONMSG = 'click to disable panel synchronisation';
Expand Down
Loading