Subscriptions termination fixes.

This commit is contained in:
Brad Arant committed 2022-02-14 07:12:19 -08:00
1 parent 6cf321ceb4
commit aa85bde66f
176 files changed
+1692 -938

No files matched your search

+9 -75
View File
@@ -79,69 +79,28 @@ Inheritance diagram for core::Command:</div>
<div class="dyncontent">
<div class="center"><img src="classcore_1_1Command__inherit__graph.png" border="0" usemap="#core_1_1Command_inherit__map" alt="Inheritance graph"/></div>
<map name="core_1_1Command_inherit__map" id="core_1_1Command_inherit__map">
<area shape="rect" title=" " alt="" coords="226,5,351,32"/>
<area shape="rect" href="classcore_1_1CommandList.html" title=" " alt="" coords="5,80,153,107"/>
<area shape="rect" href="classcore_1_1EPoll.html" title=" " alt="" coords="178,80,269,107"/>
<area shape="rect" href="classcore_1_1TCPServer.html" title=" " alt="" coords="293,80,418,107"/>
<area shape="rect" href="classcore_1_1UDPServerSocket.html" title=" " alt="" coords="442,80,613,107"/>
<area shape="rect" href="classcore_1_1ConsoleServer.html" title=" " alt="" coords="198,155,350,181"/>
<area shape="rect" href="classcore_1_1TLSServer.html" title=" " alt="" coords="374,155,497,181"/>
<area shape="rect" title=" " alt="" coords="5,107,131,133"/>
<area shape="rect" href="classcore_1_1CommandList.html" title=" " alt="" coords="202,5,350,32"/>
<area shape="rect" href="classcore_1_1EPoll.html" title=" " alt="" coords="231,56,321,83"/>
<area shape="rect" href="classcore_1_1SubscriptionManager.html" title=" " alt="" coords="179,107,373,133"/>
<area shape="rect" href="classcore_1_1TCPServer.html" title=" " alt="" coords="213,157,339,184"/>
<area shape="rect" href="classcore_1_1UDPServerSocket.html" title=" " alt="" coords="191,208,361,235"/>
<area shape="rect" href="classcore_1_1ConsoleServer.html" title=" " alt="" coords="421,132,573,159"/>
<area shape="rect" href="classcore_1_1TLSServer.html" title=" " alt="" coords="436,183,559,209"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3bec2a324e71b72f1525a28b2bb028fe"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcore_1_1Command.html#a3bec2a324e71b72f1525a28b2bb028fe">check</a> (coreutils::ZString &amp;request)</td></tr>
<tr class="separator:a3bec2a324e71b72f1525a28b2bb028fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95176f2532c38ee14e3fee40ee28b1bd"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcore_1_1Command.html#a95176f2532c38ee14e3fee40ee28b1bd">processCommand</a> (coreutils::ZString &amp;request, <a class="el" href="classcore_1_1TCPSession.html">TCPSession</a> &amp;session)</td></tr>
<tr class="separator:a95176f2532c38ee14e3fee40ee28b1bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6352ce5650e70a5c76c3d6e4eefd292"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcore_1_1Command.html#ab6352ce5650e70a5c76c3d6e4eefd292">output</a> (std::stringstream &amp;out)</td></tr>
<tr class="separator:ab6352ce5650e70a5c76c3d6e4eefd292"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8b0321c64838f4d5c8f93461b97cfef"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcore_1_1Command.html#ad8b0321c64838f4d5c8f93461b97cfef">setName</a> (std::string name)</td></tr>
<tr class="separator:ad8b0321c64838f4d5c8f93461b97cfef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa63cf88493b2a1b775b5b93b07e79324"><td class="memItemLeft" align="right" valign="top"><a id="aa63cf88493b2a1b775b5b93b07e79324"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>getName</b> ()</td></tr>
<tr class="separator:aa63cf88493b2a1b775b5b93b07e79324"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classcore_1_1Command.html">Command</a></p>
<p>Use the <a class="el" href="classcore_1_1Command.html">Command</a> object in combination with a <a class="el" href="classcore_1_1CommandList.html">CommandList</a> object to maintain a list of functions that can be invoked as a result of processing a request. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a3bec2a324e71b72f1525a28b2bb028fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bec2a324e71b72f1525a28b2bb028fe">&#9670;&nbsp;</a></span>check()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool core::Command::check </td>
<td>(</td>
<td class="paramtype">coreutils::ZString &amp;&#160;</td>
<td class="paramname"><em>request</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Implement check method to provide a special check rule upon the request to see if the command should be processed.</p>
<p>The default rule is to verify that the first token in the request string matches the name given on the registration of the command to the <a class="el" href="classcore_1_1CommandList.html">CommandList</a>. This can be overridden by implementing the <a class="el" href="classcore_1_1Command.html#a3bec2a324e71b72f1525a28b2bb028fe">check()</a> method to perform the test and return the condition of the command.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">request</td><td>The request passed to the parser to check the rule. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Return true to execute the command. Returning false will cause no action on this command. </dd></dl>
</div>
</div>
<a id="ab6352ce5650e70a5c76c3d6e4eefd292"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6352ce5650e70a5c76c3d6e4eefd292">&#9670;&nbsp;</a></span>output()</h2>
@@ -220,32 +179,7 @@ std::string&#160;</td><td class="memItemRight" valign="bottom"><b>getName</b> ()
</dl>
<dl class="section return"><dt>Returns</dt><dd>Returns 0 if execution of the command was successful. Otherwise returns a non-zero value indicating an error condition. </dd></dl>
<p>Reimplemented in <a class="el" href="classcore_1_1TCPServer.html#a6b7a7e1ac4132942fcaf418ed41c1437">core::TCPServer</a>, <a class="el" href="classcore_1_1EPoll.html#a22b5f1545aff3162040844be043abcce">core::EPoll</a>, and <a class="el" href="classcore_1_1CommandList.html#a1819e1cb377b5d8e5e00b4777e2b4aba">core::CommandList</a>.</p>
</div>
</div>
<a id="ad8b0321c64838f4d5c8f93461b97cfef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8b0321c64838f4d5c8f93461b97cfef">&#9670;&nbsp;</a></span>setName()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void core::Command::setName </td>
<td>(</td>
<td class="paramtype">std::string&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the name of this command used in default rule checking during request parsing. NOTE: You do not need to call this under normal conditions as adding a <a class="el" href="classcore_1_1Command.html">Command</a> to a <a class="el" href="classcore_1_1CommandList.html">CommandList</a> using the add() method contains a parameter to pass the name of the <a class="el" href="classcore_1_1Command.html">Command</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>Specify the name of this command for default parsing. </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented in <a class="el" href="classcore_1_1TCPServer.html#a6b7a7e1ac4132942fcaf418ed41c1437">core::TCPServer</a>, <a class="el" href="classcore_1_1EPoll.html#a22b5f1545aff3162040844be043abcce">core::EPoll</a>, <a class="el" href="classcore_1_1SubscriptionManager.html#aaa30bf772ad72b3f319a790662e4f8ae">core::SubscriptionManager</a>, and <a class="el" href="classcore_1_1CommandList.html#a1819e1cb377b5d8e5e00b4777e2b4aba">core::CommandList</a>.</p>
</div>
</div>