equal
deleted
inserted
replaced
43 .AddConstructor<TcpTahoe> () |
43 .AddConstructor<TcpTahoe> () |
44 .AddAttribute ("ReTxThreshold", "Threshold for fast retransmit", |
44 .AddAttribute ("ReTxThreshold", "Threshold for fast retransmit", |
45 UintegerValue (3), |
45 UintegerValue (3), |
46 MakeUintegerAccessor (&TcpTahoe::m_retxThresh), |
46 MakeUintegerAccessor (&TcpTahoe::m_retxThresh), |
47 MakeUintegerChecker<uint32_t> ()) |
47 MakeUintegerChecker<uint32_t> ()) |
48 .AddTraceSource ("CongestionWindow", |
|
49 "The TCP connection's congestion window", |
|
50 MakeTraceSourceAccessor (&TcpTahoe::m_cWnd), |
|
51 "ns3::TracedValue::Uint32Callback") |
|
52 .AddTraceSource ("SlowStartThreshold", |
|
53 "TCP slow start threshold (bytes)", |
|
54 MakeTraceSourceAccessor (&TcpTahoe::m_ssThresh), |
|
55 "ns3::TracedValue::Uint32Callback") |
|
56 ; |
48 ; |
57 return tid; |
49 return tid; |
58 } |
50 } |
59 |
51 |
60 TcpTahoe::TcpTahoe (void) : m_initialCWnd (1), m_retxThresh (3) |
52 TcpTahoe::TcpTahoe (void) : m_initialCWnd (1), m_retxThresh (3) |
62 NS_LOG_FUNCTION (this); |
54 NS_LOG_FUNCTION (this); |
63 } |
55 } |
64 |
56 |
65 TcpTahoe::TcpTahoe (const TcpTahoe& sock) |
57 TcpTahoe::TcpTahoe (const TcpTahoe& sock) |
66 : TcpSocketBase (sock), |
58 : TcpSocketBase (sock), |
67 m_cWnd (sock.m_cWnd), |
|
68 m_ssThresh (sock.m_ssThresh), |
|
69 m_initialCWnd (sock.m_initialCWnd), |
59 m_initialCWnd (sock.m_initialCWnd), |
70 m_initialSsThresh (sock.m_initialSsThresh), |
60 m_initialSsThresh (sock.m_initialSsThresh), |
71 m_retxThresh (sock.m_retxThresh) |
61 m_retxThresh (sock.m_retxThresh) |
72 { |
62 { |
73 NS_LOG_FUNCTION (this); |
63 NS_LOG_FUNCTION (this); |