X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7a962524dde4462c012866f371f0a0810915508c..116bb3cc2f279ab41c1aaa141c95aa21c31e1019:/src/surf/ns3/ns3_simulator.hpp diff --git a/src/surf/ns3/ns3_simulator.hpp b/src/surf/ns3/ns3_simulator.hpp index c7c496c364..714ebfeaf9 100644 --- a/src/surf/ns3/ns3_simulator.hpp +++ b/src/surf/ns3/ns3_simulator.hpp @@ -20,7 +20,7 @@ public: explicit NetPointNs3(); int node_num; - ns3::Ptr ns3Node_; + ns3::Ptr ns3_node_; }; XBT_PUBLIC void ns3_initialize(std::string TcpProtocol); @@ -33,17 +33,17 @@ public: SgFlow(uint32_t total_bytes, simgrid::kernel::resource::NetworkNS3Action* action); // private: - std::uint32_t bufferedBytes_ = 0; - std::uint32_t sentBytes_ = 0; + std::uint32_t buffered_bytes_ = 0; + std::uint32_t sent_bytes_ = 0; std::uint32_t remaining_; - std::uint32_t totalBytes_; + std::uint32_t total_bytes_; bool finished_ = false; simgrid::kernel::resource::NetworkNS3Action* action_; }; -void StartFlow(ns3::Ptr sock, const char* to, uint16_t port_number); +void start_flow(ns3::Ptr sock, const char* to, uint16_t port_number); -static inline std::string transformSocketPtr(ns3::Ptr local_socket) +static inline std::string transform_socket_ptr(ns3::Ptr local_socket) { std::stringstream sstream; sstream << local_socket;