Minor doc notes added to ipv4.h
This commit is contained in:
1 parent
e753ab7501
commit
ed9944dc14
4 files changed
+32
No files matched your search
@@ -425,6 +425,11 @@ public:
|
||||
/**
|
||||
* \param i index of ipv4 interface
|
||||
* \returns the address associated to the underlying ipv4 interface
|
||||
*
|
||||
* Note that the broadcast address for this interface may be fetched
|
||||
* from the Ipv4Address object returned here using
|
||||
* Ipv4Address::GetSubnetDirectedBroadcast(mask), where the mask for
|
||||
* the interface may be retrived using Ipv4::GetNetworkMask(i).
|
||||
*/
|
||||
virtual Ipv4Address GetAddress (uint32_t i) const = 0;
|
||||
|
||||
@@ -432,6 +437,11 @@ public:
|
||||
* \param destination The IP address of a hypothetical destination.
|
||||
* \returns The IP address assigned to the interface that will be used
|
||||
* if we were to send a packet to destination.
|
||||
*
|
||||
* Note that the broadcast address for this interface may be fetched
|
||||
* from the Ipv4Address object returned here using
|
||||
* Ipv4Address::GetSubnetDirectedBroadcast(mask), where the mask for
|
||||
* the interface may be retrived using Ipv4::GetNetworkMask(i).
|
||||
*/
|
||||
virtual Ipv4Address GetSourceAddress (Ipv4Address destination) const = 0;
|
||||
|
||||
|
||||
@@ -128,6 +128,18 @@ Node::GetNApplications (void) const
|
||||
{
|
||||
return m_applications.size ();
|
||||
}
|
||||
Ptr<Application>
|
||||
Node::GetFirstApplication(TypeId tid)
|
||||
{
|
||||
for (std::vector<Ptr<Application> >::iterator i = m_applications.begin ();
|
||||
i != m_applications.end (); i++) {
|
||||
Ptr<Application> app = *i;
|
||||
if (app->GetInstanceTypeId() == tid)
|
||||
return app;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
Node::DoDispose()
|
||||
|
||||
@@ -122,6 +122,13 @@ public:
|
||||
* within this Node.
|
||||
*/
|
||||
Ptr<Application> GetApplication (uint32_t index) const;
|
||||
/**
|
||||
* \param index
|
||||
* \returns the application associated to this requested index
|
||||
* within this Node.
|
||||
*/
|
||||
Ptr<Application> GetFirstApplication (TypeId tid);
|
||||
|
||||
/**
|
||||
* \returns the number of applications associated to this Node.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user