X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dbfaf2c37c080ab6f6c41fb4d3d0d481db6b7780..2652a7d2c9ebb969683d8fd94b11c96489327912:/src/surf/ns3/ns3_simulator.h diff --git a/src/surf/ns3/ns3_simulator.h b/src/surf/ns3/ns3_simulator.h index 89c10d2c01..8cec673f99 100644 --- a/src/surf/ns3/ns3_simulator.h +++ b/src/surf/ns3/ns3_simulator.h @@ -37,22 +37,17 @@ public: simgrid::surf::NetworkNS3Action* action_; }; -//Simulator s; -class NS3Sim { +void StartFlow(ns3::Ptr sock, const char *to, uint16_t port_number); -private: +static inline const char *transformSocketPtr (ns3::Ptr localSocket) +{ + static char key[24]; + std::stringstream sstream; + sstream << localSocket ; + sprintf(key,"%s",sstream.str().c_str()); -public: - NS3Sim(); - void create_flow_NS3(ns3::Ptr src, - ns3::Ptr dst, - std::uint16_t port_number, - double start, - const char *addr, - std::uint32_t TotalBytes, - simgrid::surf::NetworkNS3Action * action); - void simulator_start(double min); -}; + return key; +} #endif /* __cplusplus */