Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallardo994 committed Jan 16, 2024
1 parent 17210e8 commit 783f176
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/html/classimkcpp_1_1RtoCalculator-members.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<tr bgcolor="#f0f0f0"><td class="entry"><b>get_rto</b>() const (defined in <a class="el" href="classimkcpp_1_1RtoCalculator.html">imkcpp::RtoCalculator</a>)</td><td class="entry"><a class="el" href="classimkcpp_1_1RtoCalculator.html">imkcpp::RtoCalculator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>set_interval</b>(const u32 interval) (defined in <a class="el" href="classimkcpp_1_1RtoCalculator.html">imkcpp::RtoCalculator</a>)</td><td class="entry"><a class="el" href="classimkcpp_1_1RtoCalculator.html">imkcpp::RtoCalculator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>set_min_rto</b>(const u32 minrto) (defined in <a class="el" href="classimkcpp_1_1RtoCalculator.html">imkcpp::RtoCalculator</a>)</td><td class="entry"><a class="el" href="classimkcpp_1_1RtoCalculator.html">imkcpp::RtoCalculator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>update_rtt</b>(const u32 current, const u32 ts) (defined in <a class="el" href="classimkcpp_1_1RtoCalculator.html">imkcpp::RtoCalculator</a>)</td><td class="entry"><a class="el" href="classimkcpp_1_1RtoCalculator.html">imkcpp::RtoCalculator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>update_rto</b>(const u32 current, const u32 ts) (defined in <a class="el" href="classimkcpp_1_1RtoCalculator.html">imkcpp::RtoCalculator</a>)</td><td class="entry"><a class="el" href="classimkcpp_1_1RtoCalculator.html">imkcpp::RtoCalculator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Expand Down
6 changes: 3 additions & 3 deletions docs/html/classimkcpp_1_1RtoCalculator.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@
<tr class="memitem:aca5b215f52a20913327744ca758bc116"><td class="memItemLeft" align="right" valign="top"><a id="aca5b215f52a20913327744ca758bc116"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>set_interval</b> (const u32 interval)</td></tr>
<tr class="separator:aca5b215f52a20913327744ca758bc116"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a801de15bc24f90453507f0e7b04892da"><td class="memItemLeft" align="right" valign="top"><a id="a801de15bc24f90453507f0e7b04892da"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>update_rtt</b> (const u32 current, const u32 ts)</td></tr>
<tr class="separator:a801de15bc24f90453507f0e7b04892da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa36ba386f39952ea039198fc6127262c"><td class="memItemLeft" align="right" valign="top"><a id="aa36ba386f39952ea039198fc6127262c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>update_rto</b> (const u32 current, const u32 ts)</td></tr>
<tr class="separator:aa36ba386f39952ea039198fc6127262c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4f3294ae9633d830227ffd600a5c24d"><td class="memItemLeft" align="right" valign="top"><a id="ad4f3294ae9633d830227ffd600a5c24d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>set_min_rto</b> (const u32 minrto)</td></tr>
<tr class="separator:ad4f3294ae9633d830227ffd600a5c24d"><td class="memSeparator" colspan="2">&#160;</td></tr>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/imkcpp_8hpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; }</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keywordflow">case</span> commands::IKCP_CMD_ACK: {</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; this-&gt;rto_calculator.update_rtt(this-&gt;current, header.<a class="code" href="structimkcpp_1_1SegmentHeader.html#abec58d2672fe72e40f8e9237d0c9dc3e">ts</a>);</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; this-&gt;rto_calculator.update_rto(this-&gt;current, header.<a class="code" href="structimkcpp_1_1SegmentHeader.html#abec58d2672fe72e40f8e9237d0c9dc3e">ts</a>);</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; this-&gt;ack_controller.ack_received(this-&gt;current, header.<a class="code" href="structimkcpp_1_1SegmentHeader.html#a6546abc6b9bdfbd1b778147526da60ff">sn</a>, header.<a class="code" href="structimkcpp_1_1SegmentHeader.html#abec58d2672fe72e40f8e9237d0c9dc3e">ts</a>);</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; fastack_ctx.update(header.<a class="code" href="structimkcpp_1_1SegmentHeader.html#a6546abc6b9bdfbd1b778147526da60ff">sn</a>, header.<a class="code" href="structimkcpp_1_1SegmentHeader.html#abec58d2672fe72e40f8e9237d0c9dc3e">ts</a>);</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; input_result.cmd_ack_count++;</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/rto__calculator_8hpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; this-&gt;interval = interval;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; }</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keywordtype">void</span> update_rtt(<span class="keyword">const</span> u32 current, <span class="keyword">const</span> u32 ts) {</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keywordtype">void</span> update_rto(<span class="keyword">const</span> u32 current, <span class="keyword">const</span> u32 ts) {</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keyword">const</span> i32 rtt = time_delta(current, ts);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordflow">if</span> (rtt &lt; 0) {</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/latex/classimkcpp_1_1RtoCalculator.tex
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
\mbox{\Hypertarget{classimkcpp_1_1RtoCalculator_aca5b215f52a20913327744ca758bc116}\label{classimkcpp_1_1RtoCalculator_aca5b215f52a20913327744ca758bc116}}
void {\bfseries set\+\_\+interval} (const u32 interval)
\item
\mbox{\Hypertarget{classimkcpp_1_1RtoCalculator_a801de15bc24f90453507f0e7b04892da}\label{classimkcpp_1_1RtoCalculator_a801de15bc24f90453507f0e7b04892da}}
void {\bfseries update\+\_\+rtt} (const u32 current, const u32 ts)
\mbox{\Hypertarget{classimkcpp_1_1RtoCalculator_aa36ba386f39952ea039198fc6127262c}\label{classimkcpp_1_1RtoCalculator_aa36ba386f39952ea039198fc6127262c}}
void {\bfseries update\+\_\+rto} (const u32 current, const u32 ts)
\item
\mbox{\Hypertarget{classimkcpp_1_1RtoCalculator_ad4f3294ae9633d830227ffd600a5c24d}\label{classimkcpp_1_1RtoCalculator_ad4f3294ae9633d830227ffd600a5c24d}}
void {\bfseries set\+\_\+min\+\_\+rto} (const u32 minrto)
Expand Down
2 changes: 1 addition & 1 deletion imkcpp/include/imkcpp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ namespace imkcpp {
break;
}
case commands::IKCP_CMD_ACK: {
this->rto_calculator.update_rtt(this->current, header.ts);
this->rto_calculator.update_rto(this->current, header.ts);
this->ack_controller.ack_received(this->current, header.sn, header.ts);
fastack_ctx.update(header.sn, header.ts);
input_result.cmd_ack_count++;
Expand Down
2 changes: 1 addition & 1 deletion imkcpp/include/rto_calculator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace imkcpp {
this->interval = interval;
}

void update_rtt(const u32 current, const u32 ts) {
void update_rto(const u32 current, const u32 ts) {
const i32 rtt = time_delta(current, ts);

if (rtt < 0) {
Expand Down

0 comments on commit 783f176

Please sign in to comment.