X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/116bb3cc2f279ab41c1aaa141c95aa21c31e1019..4be6dd7de645a17a97f373b2495061b54082b450:/src/surf/ns3/ns3_simulator.hpp diff --git a/src/surf/ns3/ns3_simulator.hpp b/src/surf/ns3/ns3_simulator.hpp index 714ebfeaf9..e22cb6ddf0 100644 --- a/src/surf/ns3/ns3_simulator.hpp +++ b/src/surf/ns3/ns3_simulator.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -14,19 +14,19 @@ #include -class NetPointNs3 { +class XBT_PRIVATE NetPointNs3 { public: static simgrid::xbt::Extension EXTENSION_ID; explicit NetPointNs3(); - int node_num; ns3::Ptr ns3_node_; + std::string ipv4_address_; }; -XBT_PUBLIC void ns3_initialize(std::string TcpProtocol); -XBT_PUBLIC void ns3_simulator(double max_seconds); -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); +XBT_PRIVATE void ns3_initialize(std::string TcpProtocol); +XBT_PRIVATE void ns3_simulator(double max_seconds); +XBT_PRIVATE void ns3_add_direct_route(simgrid::kernel::routing::NetPoint* src, simgrid::kernel::routing::NetPoint* dst, + double bw, double lat, simgrid::s4u::Link::SharingPolicy policy); class XBT_PRIVATE SgFlow { public: @@ -41,7 +41,7 @@ public: simgrid::kernel::resource::NetworkNS3Action* action_; }; -void start_flow(ns3::Ptr sock, const char* to, uint16_t port_number); +XBT_PRIVATE void start_flow(ns3::Ptr sock, const char* to, uint16_t port_number); static inline std::string transform_socket_ptr(ns3::Ptr local_socket) {