From 729e31bc8dd7ff61552e9be1a3bdaaa0124d7261 Mon Sep 17 00:00:00 2001 From: "Peter D. Barnes, Jr." Date: Tue, 29 Aug 2017 08:03:06 -0700 Subject: [PATCH] Improve attribute help message. --- src/applications/model/onoff-application.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/applications/model/onoff-application.cc b/src/applications/model/onoff-application.cc index 543ad3c94..06911ea23 100644 --- a/src/applications/model/onoff-application.cc +++ b/src/applications/model/onoff-application.cc @@ -82,9 +82,11 @@ OnOffApplication::GetTypeId (void) UintegerValue (0), MakeUintegerAccessor (&OnOffApplication::m_maxBytes), MakeUintegerChecker ()) - .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),