diff --git a/bindings/python/wscript b/bindings/python/wscript index 96051c32e..3cdb3c894 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -21,7 +21,7 @@ else: os.environ['PYTHONPATH'] = LOCAL_PYBINDGEN_PATH ## https://launchpad.net/pybindgen/ -REQUIRED_PYBINDGEN_VERSION = (0, 9, 0, 563) +REQUIRED_PYBINDGEN_VERSION = (0, 9, 0, 564) REQUIRED_PYGCCXML_VERSION = (0, 9, 5) diff --git a/src/helper/on-off-helper.h b/src/helper/on-off-helper.h index a36ab49a5..3b4ac6cc1 100644 --- a/src/helper/on-off-helper.h +++ b/src/helper/on-off-helper.h @@ -31,13 +31,34 @@ namespace ns3 { +/** + * \brief instanciate an ns3::OnOffApplication on a set of nodes. + */ class OnOffHelper { public: + /** + * \param protocol the name of the protocol to use to send traffic + * by the applications. This string identifies the socket + * factory type used to create sockets for the applications. + * A typical value would be ns3::UdpSocketFactory. + * \param address the address of the remote node to send traffic + * to. + */ OnOffHelper (std::string protocol, Address address); + /** + * \param name the name of the application attribute to set + * \param value the value of the application attribute to set + */ void SetAttribute (std::string name, const AttributeValue &value); + /** + * \param c the set of nodes on which an OnOffApplication will be installed. + * + * Install an ns3::OnOffApplication on each node of the input container + * configured with all the attributes set with SetAttribute. + */ ApplicationContainer Install (NodeContainer c); private: