Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(849)

Unified Diff: src/helper/csma-helper.cc

Issue 117051: Ns-3 Net-anim Interface (Closed)
Patch Set: Updates after Tom's comments Created 14 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/helper/csma-helper.h ('k') | src/helper/csma-star-helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/helper/csma-helper.cc
===================================================================
--- a/src/helper/csma-helper.cc
+++ b/src/helper/csma-helper.cc
@@ -269,27 +269,6 @@ CsmaHelper::InstallPriv (Ptr<Node> node,
}
void
-CsmaHelper::InstallStar (Ptr<Node> hub, NodeContainer spokes,
- NetDeviceContainer& hubDevices, NetDeviceContainer& spokeDevices)
-{
- for (uint32_t i = 0; i < spokes.GetN (); ++i)
- {
- NodeContainer nodes (hub, spokes.Get (i));
- NetDeviceContainer nd = Install (nodes);
- hubDevices.Add (nd.Get (0));
- spokeDevices.Add (nd.Get (1));
- }
-}
-
-void
-CsmaHelper::InstallStar (std::string hubName, NodeContainer spokes,
- NetDeviceContainer& hubDevices, NetDeviceContainer& spokeDevices)
-{
- Ptr<Node> hub = Names::Find<Node> (hubName);
- InstallStar (hub, spokes, hubDevices, spokeDevices);
-}
-
-void
CsmaHelper::SniffEvent (Ptr<PcapWriter> writer, Ptr<const Packet> packet)
{
writer->WritePacket (packet);
« no previous file with comments | « src/helper/csma-helper.h ('k') | src/helper/csma-star-helper.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b