Improve attribute help message.

This commit is contained in:
Peter D. Barnes, Jr.
2017-08-29 08:03:06 -07:00
parent e48a2b7a17
commit 729e31bc8d

View File

@@ -82,9 +82,11 @@ OnOffApplication::GetTypeId (void)
UintegerValue (0),
MakeUintegerAccessor (&OnOffApplication::m_maxBytes),
MakeUintegerChecker<uint64_t> ())
.AddAttribute ("Protocol", "The type of protocol to use.",
.AddAttribute ("Protocol", "The type of protocol to use. This should be "
"a subclass of ns3::SocketFactory",
TypeIdValue (UdpSocketFactory::GetTypeId ()),
MakeTypeIdAccessor (&OnOffApplication::m_tid),
// This should check for SocketFactory as a parent
MakeTypeIdChecker ())
.AddTraceSource ("Tx", "A new packet is created and is sent",
MakeTraceSourceAccessor (&OnOffApplication::m_txTrace),