X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a96adb51dabc0c759af11e60c770355f22a54ef3..a12a8405067d2569298b6943eb03e3e6b1e33108:/src/surf/ns3/ns3_interface.hpp diff --git a/src/surf/ns3/ns3_interface.hpp b/src/surf/ns3/ns3_interface.hpp index e9966b58e7..dfee129862 100644 --- a/src/surf/ns3/ns3_interface.hpp +++ b/src/surf/ns3/ns3_interface.hpp @@ -6,6 +6,7 @@ #ifndef NS3_INTERFACE_HPP #define NS3_INTERFACE_HPP +#include "ns3/ptr.h" #include "simgrid/s4u/Host.hpp" namespace simgrid { @@ -13,6 +14,9 @@ namespace surf { class NetworkNS3Action; } } +namespace ns3 { +class Node; +} class NetPointNs3 { public: @@ -20,14 +24,14 @@ public: explicit NetPointNs3(); int node_num; + ns3::Ptr ns3Node_; }; extern "C" { XBT_PUBLIC(void) ns3_initialize(const char* TcpProtocol); XBT_PUBLIC(void) -ns3_create_flow(sg_host_t src, sg_host_t dst, u_int32_t TotalBytes, - simgrid::surf::NetworkNS3Action* action); +ns3_create_flow(sg_host_t src, sg_host_t dst, u_int32_t TotalBytes, simgrid::surf::NetworkNS3Action* action); XBT_PUBLIC(void) ns3_simulator(double maxSeconds); XBT_PUBLIC(void*) ns3_add_router(const char* id); XBT_PUBLIC(void) ns3_add_link(NetPointNs3* src, NetPointNs3* dst, double bw, double lat);