-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.cc
25 lines (25 loc) · 856 Bytes
/
test.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "ns3/constant-position-mobility-model.h"
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
#include "ns3/internet-module.h"
#include "ns3/flow-monitor-module.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/stats-module.h"
#include "ns3/global-route-manager.h"
#include "ns3/bridge-module.h"
#include "ns3/trace-helper.h"
#include "ns3/netanim-module.h"
using namespace ns3;
#include"MyApp.h"
int main(int argc, char *argv[]) {
std::string animFile = "test.xml"; // Name of file for animation output
CommandLine cmd;
cmd.Parse(argc, argv);
PointToPointHelper p2p;
p2p.SetDeviceAttribute("DataRate", StringValue("50Mbps"));
p2p.SetChannelAttribute("Delay", StringValue("10ms"));
NodeContainer All;
All.Create(3);
}