Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
[simgrid.git] / src / surf / ns3 / ns3_interface.h
1 /* Copyright (c) 2007-2016. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef _NS3_INTERFACE_H
7 #define _NS3_INTERFACE_H
8
9 #include <simgrid/s4u/host.hpp>
10
11 namespace simgrid{
12   namespace surf{
13     class NetworkNS3Action;
14   }
15 }
16
17 class HostNs3 {
18 public:
19   explicit HostNs3();
20   int node_num;
21 };
22
23 SG_BEGIN_DECL()
24
25 XBT_PUBLIC(void)   ns3_initialize(const char* TcpProtocol);
26 XBT_PUBLIC(void)
27 ns3_create_flow(sg_host_t src, sg_host_t dst, double start, u_int32_t TotalBytes,
28                 simgrid::surf::NetworkNS3Action* action);
29 XBT_PUBLIC(void)   ns3_simulator(double maxSeconds);
30 XBT_PUBLIC(void *) ns3_add_router(const char * id);
31 XBT_PUBLIC(void)   ns3_add_link(int src, int dst, char * bw,char * lat);
32 XBT_PUBLIC(void) ns3_add_cluster(const char* id, char* bw, char* lat);
33
34 SG_END_DECL()
35
36 #endif