New TracedCallback function signatures.
This commit is contained in:
@@ -57,8 +57,10 @@ UdpSocketImpl::GetTypeId (void)
|
||||
static TypeId tid = TypeId ("ns3::UdpSocketImpl")
|
||||
.SetParent<UdpSocket> ()
|
||||
.AddConstructor<UdpSocketImpl> ()
|
||||
.AddTraceSource ("Drop", "Drop UDP packet due to receive buffer overflow",
|
||||
MakeTraceSourceAccessor (&UdpSocketImpl::m_dropTrace))
|
||||
.AddTraceSource ("Drop",
|
||||
"Drop UDP packet due to receive buffer overflow",
|
||||
MakeTraceSourceAccessor (&UdpSocketImpl::m_dropTrace),
|
||||
"ns3::Packet::TracedCallback")
|
||||
.AddAttribute ("IcmpCallback", "Callback invoked whenever an icmp error is received on this socket.",
|
||||
CallbackValue (),
|
||||
MakeCallbackAccessor (&UdpSocketImpl::m_icmpCallback),
|
||||
|
||||
@@ -43,7 +43,8 @@ TimeProbe::GetTypeId ()
|
||||
.AddConstructor<TimeProbe> ()
|
||||
.AddTraceSource ("Output",
|
||||
"The double valued (units of seconds) probe output",
|
||||
MakeTraceSourceAccessor (&TimeProbe::m_output))
|
||||
MakeTraceSourceAccessor (&TimeProbe::m_output),
|
||||
"ns3::TracedValue::DoubleCallback")
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ TimeSeriesAdaptor::GetTypeId (void)
|
||||
"The current simulation time versus "
|
||||
"the current value converted to a double",
|
||||
MakeTraceSourceAccessor (&TimeSeriesAdaptor::m_output),
|
||||
"ns3::TimeSeriesAdapter::OutputTracedCallback")
|
||||
"ns3::TimeSeriesAdaptor::OutputTracedCallback")
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ public:
|
||||
void TraceSinkUinteger32 (uint32_t oldData, uint32_t newData);
|
||||
|
||||
/**
|
||||
* TracedCallback signature for
|
||||
* TracedCallback signature for output trace.
|
||||
*
|
||||
* \param [in] now The current Time.
|
||||
* \param [in] data The new data value.
|
||||
|
||||
Reference in New Issue
Block a user