X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4bb73cb3914b5f7b77a9ec1f8abe728e637cc016..51c23076e2b42ff07dc167dea1cb0e3a4ab3cf68:/src/surf/ns3/ns3_simulator.hpp diff --git a/src/surf/ns3/ns3_simulator.hpp b/src/surf/ns3/ns3_simulator.hpp index edb6fc7c8b..93ea87cff2 100644 --- a/src/surf/ns3/ns3_simulator.hpp +++ b/src/surf/ns3/ns3_simulator.hpp @@ -7,18 +7,13 @@ #define NS3_SIMULATOR_HPP #include "simgrid/s4u/Host.hpp" +#include "src/surf/network_ns3.hpp" #include #include #include -namespace simgrid { -namespace surf { -class NetworkNS3Action; -} -} // namespace simgrid - class NetPointNs3 { public: static simgrid::xbt::Extension EXTENSION_ID; @@ -29,15 +24,13 @@ public: }; XBT_PUBLIC void ns3_initialize(std::string TcpProtocol); -extern "C" { XBT_PUBLIC void ns3_simulator(double maxSeconds); XBT_PUBLIC void ns3_add_link(NetPointNs3* src, NetPointNs3* dst, double bw, double lat); XBT_PUBLIC void ns3_add_cluster(const char* id, double bw, double lat); -} class XBT_PRIVATE SgFlow { public: - SgFlow(uint32_t totalBytes, simgrid::surf::NetworkNS3Action* action); + SgFlow(uint32_t totalBytes, simgrid::kernel::resource::NetworkNS3Action* action); // private: std::uint32_t bufferedBytes_ = 0; @@ -45,7 +38,7 @@ public: std::uint32_t remaining_; std::uint32_t totalBytes_; bool finished_ = false; - simgrid::surf::NetworkNS3Action* action_; + simgrid::kernel::resource::NetworkNS3Action* action_; }; void StartFlow(ns3::Ptr sock, const char* to, uint16_t port_number);