1 /* Copyright (c) 2007-2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
14 #include "ns3_interface.h"
15 #include "ns3/core-module.h"
16 #include "my-point-to-point-helper.h"
19 #include "ns3/global-route-manager.h"
20 #include "ns3/csma-helper.h"
21 #include "ns3/internet-stack-helper.h"
22 #include "ns3/ipv4-address-helper.h"
23 #include "ns3/point-to-point-helper.h"
24 #include "ns3/packet-sink-helper.h"
25 #include "ns3/inet-socket-address.h"
26 #include "ns3/tcp-socket-factory.h"
30 SgFlow(uint32_t totalBytes, simgrid::surf::NetworkNS3Action * action);
33 std::uint32_t bufferedBytes_ = 0;
34 std::uint32_t sentBytes_ = 0;
35 std::uint32_t remaining_;
36 std::uint32_t totalBytes_;
37 bool finished_ = false;
38 simgrid::surf::NetworkNS3Action* action_;
48 void create_flow_NS3(ns3::Ptr<ns3::Node> src,
49 ns3::Ptr<ns3::Node> dst,
50 std::uint16_t port_number,
53 std::uint32_t TotalBytes,
54 simgrid::surf::NetworkNS3Action * action);
55 void simulator_start(double min);
58 #endif /* __cplusplus */