<trclass="memdesc:gafa923df029168f4991b77ffdd9e24877"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a <aclass="el"href="group__types_group.html#ga57a4b8c7109e2773878655722ce028aa"title="Statistics of a natsConnection.">natsStatistics</a> object. <br/></td></tr>
<trclass="memdesc:gad85f5ffb4272713f6cc6d988e6d4e75f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Extracts the various statistics values. <br/></td></tr>
<trclass="memdesc:ga26a04e77af8fc160adf7c33088dcf59c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Destroys the <aclass="el"href="group__types_group.html#ga57a4b8c7109e2773878655722ce028aa"title="Statistics of a natsConnection.">natsStatistics</a> object. <br/></td></tr>
<p>Creates a statistics object that can be passed to <aclass="el"href="group__conn_mgt_group.html#ga68821a8ae1176096b5afef7fdc7947ec"title="Gets the connection statistics.">natsConnection_GetStats()</a>.</p>
<dlclass="section note"><dt>Note</dt><dd>The object needs to be destroyed when no longer needed.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="group__stats_group.html#ga26a04e77af8fc160adf7c33088dcf59c"title="Destroys the natsStatistics object.">natsStatistics_Destroy()</a></dd></dl>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">newStats</td><td>the location where to store the pointer to the newly created <aclass="el"href="group__types_group.html#ga57a4b8c7109e2773878655722ce028aa"title="Statistics of a natsConnection.">natsStatistics</a> object. </td></tr>
<p>Gets the counts out of the statistics object.</p>
<dlclass="section note"><dt>Note</dt><dd>You can pass <code>NULL</code> to any of the count your are not interested in getting.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="group__conn_mgt_group.html#ga68821a8ae1176096b5afef7fdc7947ec"title="Gets the connection statistics.">natsConnection_GetStats()</a></dd></dl>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">stats</td><td>the pointer to the <aclass="el"href="group__types_group.html#ga57a4b8c7109e2773878655722ce028aa"title="Statistics of a natsConnection.">natsStatistics</a> object to get the values from. </td></tr>
<tr><tdclass="paramname">inMsgs</td><td>total number of inbound messages. </td></tr>
<tr><tdclass="paramname">inBytes</td><td>total size (in bytes) of inbound messages. </td></tr>
<tr><tdclass="paramname">outMsgs</td><td>total number of outbound messages. </td></tr>
<tr><tdclass="paramname">outBytes</td><td>total size (in bytes) of outbound messages. </td></tr>
<tr><tdclass="paramname">reconnects</td><td>total number of times the client has reconnected. </td></tr>
<p>Destroys the statistics object, freeing up memory.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">stats</td><td>the pointer to the <aclass="el"href="group__types_group.html#ga57a4b8c7109e2773878655722ce028aa"title="Statistics of a natsConnection.">natsStatistics</a> object to destroy. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.10-->
<!-- start footer part -->
<divid="nav-path"class="navpath"><!-- id is needed for treeview function! -->
<ul>
<liclass="footer">NATS.IO Supported By Synadia Communications Inc.