54 { |
54 { |
55 static TypeId tid = TypeId ("ns3::NscTcpSocketImpl") |
55 static TypeId tid = TypeId ("ns3::NscTcpSocketImpl") |
56 .SetParent<TcpSocket> () |
56 .SetParent<TcpSocket> () |
57 .AddTraceSource ("CongestionWindow", |
57 .AddTraceSource ("CongestionWindow", |
58 "The TCP connection's congestion window", |
58 "The TCP connection's congestion window", |
59 MakeTraceSourceAccessor (&NscTcpSocketImpl::m_cWnd)) |
59 MakeTraceSourceAccessor (&NscTcpSocketImpl::m_cWnd), |
|
60 "ns3::TracedValue::Uint32Callback") |
60 .AddTraceSource ("SlowStartThreshold", |
61 .AddTraceSource ("SlowStartThreshold", |
61 "TCP slow start threshold (bytes)", |
62 "TCP slow start threshold (bytes)", |
62 MakeTraceSourceAccessor (&NscTcpSocketImpl::m_ssThresh)) |
63 MakeTraceSourceAccessor (&NscTcpSocketImpl::m_ssThresh), |
|
64 "ns3::TracedValue::Uint32Callback") |
|
65 .AddTraceSource ("State", |
|
66 "TCP state", |
|
67 MakeTraceSourceAccessor (&NscTcpSocketImpl::m_state), |
|
68 "ns3::TcpStatesTracedValueCallback") |
63 ; |
69 ; |
64 return tid; |
70 return tid; |
65 } |
71 } |
66 |
72 |
67 NscTcpSocketImpl::NscTcpSocketImpl () |
73 NscTcpSocketImpl::NscTcpSocketImpl () |