View | Details | Raw Unified | Return to bug 690
Collapse All | Expand All

(-)a/examples/tcp/tcp-nsc-lfn.cc (-10 lines)
 Lines 42-53    Link Here 
42
42
43
NS_LOG_COMPONENT_DEFINE ("TcpNscLfn");
43
NS_LOG_COMPONENT_DEFINE ("TcpNscLfn");
44
44
45
static void 
46
CwndTracer (uint32_t oldval, uint32_t newval)
47
{
48
  NS_LOG_INFO ("Moving cwnd from " << oldval << " to " << newval);
49
}
50
51
int main (int argc, char *argv[])
45
int main (int argc, char *argv[])
52
{
46
{
53
47
 Lines 137-146    Link Here 
137
      clientApp.Stop (Seconds (runtime + 1.0 + i));
131
      clientApp.Stop (Seconds (runtime + 1.0 + i));
138
    }
132
    }
139
133
140
  // Trace changes to the congestion window
141
  Config::ConnectWithoutContext ("/NodeList/1/$ns3::NscTcpL4Protocol/SocketList/0/CongestionWindow", 
142
                                 MakeCallback (&CwndTracer));
143
144
  // This tells ns-3 to generate pcap traces.
134
  // This tells ns-3 to generate pcap traces.
145
  PointToPointHelper::EnablePcapAll ("tcp-nsc-lfn");
135
  PointToPointHelper::EnablePcapAll ("tcp-nsc-lfn");
146
136

Return to bug 690