From e647e0075f0f7589ba784f44193dc4e993d04335 Mon Sep 17 00:00:00 2001 From: Saman Eslami Nazari Date: Fri, 16 Jun 2023 22:36:27 +0330 Subject: [PATCH] Add code documentation's preliminaries --- CA4 - Congestion Control Algorithms/README.md | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/CA4 - Congestion Control Algorithms/README.md b/CA4 - Congestion Control Algorithms/README.md index ee2248e..57bddec 100644 --- a/CA4 - Congestion Control Algorithms/README.md +++ b/CA4 - Congestion Control Algorithms/README.md @@ -18,8 +18,51 @@ ### NewReno Class +#### Public Methods + +##### The Constructor + +##### `void sendData()` + +##### `void onPacketLoss(int)` + +##### `void onRTTUpdate(int)` + +##### `void onSelectiveAck(int)` + +##### `void log(std::ofstream&) const` + +##### `void retransmit()` + +##### `void run()` + +#### Private Methods: + +##### `double lossProbability()` + ### Reno Class +#### Public Methods + +##### The Constructor + +##### `void sendData()` + +##### `void onPacketLoss(int)` + +##### `void onRTTUpdate(int)` + +##### `void log(std::ofstream&) const` + +##### `void retransmit()` + +##### `void run()` + + +#### Private Methods + +##### `double lossProbability()` + ## Questions ### Q1. "What's the difference between congestion control and the flow control?"