src/internet/model/nsc-tcp-socket-impl.cc
changeset 10978 754c8256c35c
parent 10968 2d29fee2b7b8
child 11259 ea2f6a3ed14e
equal deleted inserted replaced
10977:f35701d8a0a0 10978:754c8256c35c
    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 ()