Академический Документы
Профессиональный Документы
Культура Документы
Pour chaque simulation on doit inclure les modules dont on aura besoin. Pour cette partie nous
allons ajouter ces bibliothques :
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/netanim-module.h"
#include "ns3/applications-module.h"
#include "ns3/animation-interface.h"
#include "ns3/point-to-point-layout-module.h"
#include "ns3/ipv4-static-routing-helper.h"
#include "ns3/ipv4-list-routing-helper.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/flow-monitor.h"
#include "ns3/flow-monitor-helper.h"
#include "ns3/flow-monitor-module.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
La ligne suivante nous permet d'introduire ns-3 comme nom de domaine :
using namespace ns3;
Cette ligne permet l'affichage des messages LOG :
NS_LOG_COMPONENT_DEFINE ("Lab3_part1");
Marwa Dammak
Marwa Dammak
Marwa Dammak
Marwa Dammak