Skip to content

Commit

Permalink
Cleaned up unused cwnd functions
Browse files Browse the repository at this point in the history
  • Loading branch information
charliebarber committed Mar 5, 2024
1 parent ad7d1b2 commit 0708212
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/lfa.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,6 @@ std::string tcpVariantId = "ns3::TcpLinuxReno";
bool enableSack = false;
double minRTO = 1.0;

void TraceCwnd(uint32_t node, uint32_t cwndWindow,
Callback<void, uint32_t, uint32_t> CwndTrace) {
Config::ConnectWithoutContext(
"/NodeList/" + std::to_string(node) + "/$ns3::TcpL4Protocol/SocketList/" +
std::to_string(cwndWindow) + "/CongestionWindow",
CwndTrace);
}

static void CwndChange(uint32_t oldCwnd, uint32_t newCwnd) {
std::ofstream fPlotQueue(tracesPath + "cwnd.txt",
std::ios::out | std::ios::app);
fPlotQueue << Simulator::Now().GetSeconds() << " " << newCwnd / segmentSize
<< " " << newCwnd << std::endl;
fPlotQueue.close();
}

void InstallBulkSend(Ptr<Node> node, Ipv4Address address, uint16_t port,
std::string socketFactory, uint32_t nodeId,
uint32_t cwndWindow,
Expand Down

0 comments on commit 0708212

Please sign in to comment.