New TracedCallback function signatures.

This commit is contained in:
Peter D. Barnes, Jr.
2014-12-04 22:33:11 -08:00
parent d32f30ed8a
commit 8de030d7fb
5 changed files with 245 additions and 242 deletions

View File

@@ -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),

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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.