-/* Copyright (c) 2019-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2019-2023. 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. */
#include "xbt/config.hpp"
#include "xbt/log.h"
-#include "src/surf/network_interface.hpp"
+#include "src/kernel/resource/WifiLinkImpl.hpp"
XBT_LOG_NEW_DEFAULT_CATEGORY(simulator, "[usage] wifi_usage <platform-file>");
}
run_ping_test("Station 1", "Station 2", 1000);
}
+
int main(int argc, char** argv)
{
simgrid::s4u::Engine engine(&argc, argv);
engine.load_platform(argv[1]);
- simgrid::s4u::Actor::create("dispatcher", simgrid::s4u::Host::by_name("node1"), main_dispatcher);
+ simgrid::s4u::Actor::create("dispatcher", engine.host_by_name("node1"), main_dispatcher);
engine.run();
return 0;